VB or batch file
Posted: 20 Jan 2015 14:50
I have a txt file that looks like this:
201501,20140101_20141231
201502,20140201_20150131
201503,20140301_20150228
201504,20140401_20150331
201505,20140501_20150430
201506,20140601_20150531
201507,20140701_20150630
201508,20140801_20150731
201509,20140901_20150831.
Would it be easier to just write a dos batch file to search this txt file or should I use a small VB application.
I am trying to automate the renaming of 55 .pdf files. The pdf files look like this when they are created: xxxxxx_2015-01-05.pdf.
xxxxxx is the name of a report contained in the pdf and 2015-01-05 is the date the pdf was created. I need to rename the files to look like this xxxxxx_20140101_20141231_20150105.pdf where the 20140101_20141231 is always the 12 month period preceding the run date.
I have never written a batch file like this and was just wondering if it would be easier to us VB.
Thanks,
Mark
201501,20140101_20141231
201502,20140201_20150131
201503,20140301_20150228
201504,20140401_20150331
201505,20140501_20150430
201506,20140601_20150531
201507,20140701_20150630
201508,20140801_20150731
201509,20140901_20150831.
Would it be easier to just write a dos batch file to search this txt file or should I use a small VB application.
I am trying to automate the renaming of 55 .pdf files. The pdf files look like this when they are created: xxxxxx_2015-01-05.pdf.
xxxxxx is the name of a report contained in the pdf and 2015-01-05 is the date the pdf was created. I need to rename the files to look like this xxxxxx_20140101_20141231_20150105.pdf where the 20140101_20141231 is always the 12 month period preceding the run date.
I have never written a batch file like this and was just wondering if it would be easier to us VB.
Thanks,
Mark