I am a novice at writing scripts but I know this can be done I just don't know how...
I have a file that need to have the file NAME changed to the current date less 1 workday (ex: Mondays date back Friday, Tuesdays to Monday with a prepend of the date a static "AD"
Filename example: AD140107.pos (Tuesdays date changed to a Wednesday date, AD140108.pos) The file is located at: R:\PortfolioCenter\Output\Manual Interface Files
I have a similar file in a different folder that has a different date format that needs the date changed as well
Filename example: PC010714.slb (Tuesdays date changed to a Wednesday date, PC010814.pos) This file is located at: R:\slwin\Recon adjustments
I would like both file names to change using the same script
I know DOS doesn't do weekdays well so I can use a separate file to process Monday files if neccesary