Batch file to remove suffix from files?


Recommended Posts

I have a bunch of files named "document (1).doc", "movie (1).avi", etc. How do I make a batch file remove the " (1)" from all the files?

I've tried getting rid of the (1) using this:

rename *(1).avi *.avi[/CODE]

That doesn't do anything. I'd like to have a .bat or some other kind of script that I can run manually or using task scheduler.

Link to comment
Share on other sites

Thanks, yxz. That seems to work perfect. That's way beyond my current understanding. Would you mind explaining what all the symbols do?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.