Is it possible to amend the following code that creates a folder with today's date to create a folder name as Yesterdays Date:
@echo off
Set CURRDATE=%TEMP%\CURRDATE.TMP
Set CURRTIME=%TEMP%\CURRTIME.TMP
DATE /T > %CURRDATE%
TIME /T > %CURRTIME%
Set PARSEARG="eol=; tokens=1,2,3,4* delims=/, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET YYYY=%%k%
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET MM=%%j%
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET DD=%%i%
Set PARSEARG="eol=; tokens=1,2,3* delims=:, "
For /F %PARSEARG% %%i in (%CURRTIME%) Do Set HHMM=%%i%%j%%k
Set NOW=%DD%.%MM%.%YYYY%
MD C:NEW FOLDER"\%NOW%
GoTo END
Any suggestions appreciated.
@echo off
Set CURRDATE=%TEMP%\CURRDATE.TMP
Set CURRTIME=%TEMP%\CURRTIME.TMP
DATE /T > %CURRDATE%
TIME /T > %CURRTIME%
Set PARSEARG="eol=; tokens=1,2,3,4* delims=/, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET YYYY=%%k%
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET MM=%%j%
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET DD=%%i%
Set PARSEARG="eol=; tokens=1,2,3* delims=:, "
For /F %PARSEARG% %%i in (%CURRTIME%) Do Set HHMM=%%i%%j%%k
Set NOW=%DD%.%MM%.%YYYY%
MD C:NEW FOLDER"\%NOW%
GoTo END
Any suggestions appreciated.