locked
for command RRS feed

  • Question

  • I need some help with a batch file.

    I have a directory with files: p001_a.jpg, p001_b.jpg, p002_a.jpg, p002_b.jpg, p003_a.jpg, p003_b.jpg and so on until 80.

    I need to have the files reversed. i.e. p001_a.jpg will become p001_b.jpg, p001_b.jpg will become p001_a.jpg and so on until 80.

    can someone help me with the batch file to write to make this happen?

     

    thanks,

    Assaf

    Sunday, June 10, 2007 9:20 PM

All replies

  • ren p00?_a.jpg p00?_t.jpg
    ren p00?_b.jpg p00?_a.jpg
    ren p00?_t.jpg p00?_b.jpg

    Tuesday, June 12, 2007 9:25 AM