Hello:
I have lots folders in say C:\ScannedFiles
The name of the folder names as Digit number OR TEXT
Example : i have folder names
1538
17
109
138
BN
LJ
LB
DIYA
HARI
Within these folders there are SUBOLDERs and within these SUBFOLDERS, there are pdf files
in following format, Example
C:\ScannedFiles\1538\XYZ\MM-DD-YYYY-4DigitNumber-*.pdf
C:\ScannedFiles\1538\XPX\MM-DD-YYYY-4DigitNumber-*.pdf
4DigitNumber will be any number between 1to9999
* is any text after 4DigitNumber- and .pdf
I need VB Code to do the following.
Go thru each of Digit Number folder ONLY.
Go to each of its subfolders, rename the pdf file by deleleting 4DigitNumber and '-" and move that file
at C:\ScannedFiles
So now per above example, the files will be in C:\Scannedfiles as below
C:\ScannedFiles\MM-DD-YYYY-*.pdf
Please let me know if you have any questions.
Thanks.
Riz
Bookmarks