![]() |
|
#1
|
|||
|
|||
|
Hello All,
I am after a *.bat file that will add some specific text before the .PDF extension. For example I have hundreds of PDF's in a folder with different names, that look similar to the following: PN00001.pdf PN00123.pdf PN00234.pdf I would like to change them to by adding a ' - Calculations' suffix: PN00001 - Calculations.pdf PN00123 - Calculations.pdf PN00234 - Calculations.pdf I have previously used a bat file to create a text file of all the files with the folder it is run from and am hoping the PDF suffix file can be placed in a specific folder and only rename these PDF's that are within that folder. Code:
dir /a /b /-p /o:gen >C:\WINDOWS\Temp\file_list.txt start notepad C:\WINDOWS\Temp\file_list.txt Regards, Dave T |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VBA Word - Search Within Files Containing A String - Copy Files to New Folder | jc491 | Word VBA | 0 | 01-09-2016 12:00 PM |
VBA batch file to insert text at end of 50 files slow, 90% CPU usage
|
equalizer88 | Word VBA | 3 | 08-16-2015 04:56 PM |
Batch instruction works or ".doc" in folder, but not ".docx"
|
raymondroe | Word VBA | 4 | 02-15-2015 01:19 AM |
| Remove Compatibility Mode on DOCX files (batch) | w64bit | Word | 17 | 02-01-2015 06:02 AM |
how to batch update linked image files path?
|
stanleyhuang | Word | 3 | 09-11-2014 12:51 AM |