• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Batch File to Delete Certain Images?

S

SquiGo

Guest
#1
how to i write a batch file to delete a certain bunch of images
for example

if i have files labled car01.jpg through car10.jpg
and then i have another set called car01.thumb.jpg through car10.thumb.jpg then how can i delete the second set....i want to delete all the files that are labled with the .thumb.jpg ending.
 
#2
go to the directory with your command prompt. then execute this command: "del *.thumb.jpg" (without the quotes).
To create a batchfile, open notepad and put the command in the file and an "exit", it looks like this:
del *.thumb.jpg
exit
Save it as a .bat (=batch) file and place it in the same directory as the files. Now you can doubleclick the file and a command prompt will popup, deletes the files and exits automatically.
 

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,015
Latest member
evaiwhitis