808TEC
asked on
Looking for a batch file to rename files to remove "Sheet (1) from each filename
When printing from autocad to PDF Creator it will add a suffix to the file name before the extesion to indicate which layout printed.
Example M01 FLOOR PLAN FIRST FLOOR GRID A SHEET (1).pdf.
I am trying to remove the "SHEET (1)" without having to rename each file manually.
thanks for your help
Example M01 FLOOR PLAN FIRST FLOOR GRID A SHEET (1).pdf.
I am trying to remove the "SHEET (1)" without having to rename each file manually.
thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the help. Works great and I appreciate since this has just become a urgent need.
@echo off
cscript "c:\myscripts\rename.vbs"
or something like that.
Obviously, you will need to edit the two variables below - one for the rootFolder (Where the documents are stored) and the other with the string you want to remove. I've left this as "SHEET (1)"
Let me know if I can help further. Also, it's case sensitive, but that is easily resolved if you want.
Open in new window