How can I create a folder from command prompt in YY-MM-MONTH format by using batch file. For example, If I want to create a folder today, the name of the folder should be 13-03-April. Here is what I have came up with.
The above code creates the folder as 2013 -03-04.
Code:
for /f "tokens=2,3,4 delims=/ " %%a in ('Date /t') do (
set month=%%a
set day=%%b
set year=%%c )
echo %year%-%day%-%month%
mkdir C:\%year%-%day%-%month%
The above code creates the folder as 2013 -03-04.