I am trying to acquire the contents of the file with a datestamp in the file name for yesterday (WH.FBTBT20130214.csv). I created a date stamp variable for today but cannot find anything in google that tells me how to backdate my datestamp one day utilizing the same format. Here is the code that I created in my batch file:
@echo off
REM ***** 20130215 MS Define DateStamp variable *****
Set DateStamp=%date:~10,4%%date:~4,2%%date:~7,2%
Set DateStamp=%DateStamp%
REM Set DateStamp=20130212
echo DateStamp: %DateStamp%
Any help/direction would be greatly appreciated. Thank you.