Batch File to Delete Certain Images?

Discussion in 'Windows Desktop Systems' started by SquiGo, Jun 12, 2003.

  1. SquiGo

    SquiGo Guest

    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. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    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.
     
  3. SquiGo

    SquiGo Guest

    heh...im so rusty
    i knew it was simple...i feel retarded now :p
     
  4. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    LOL, sometimes you don't see the simplest things, I am having trouble with that too :)
     
  5. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    me too, didn't see my feet earlier, tripped over them. Weird
     
  6. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    That must have been a very strange experience :blink:
     
  7. XP Abuser

    XP Abuser Guest


    did anyone laugh :eek:
     
  8. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    well my dog had a smug look on its face....
     
  9. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Haha.