Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
@echo offSET date="%date:~6,4%-%date:~0,2%-%date:~2,2%"md D:\2\%date%xcopy /e C:\1\*.* D:\2\%date%@pause
@echo offset MM=%date:~4,2%set DD=%date:~7,2%set YYYY=%date:~10,4%echo MM=%MM%echo DD=%DD%echo YYYY=%YYYY%set mydate=%MM%-%DD%-%YYYY%echo mydate=%mydate%pausee:cd 2md %mydate%copy C:\1\*.* e:\2\%mydate%\cd e:\2\%mydate%\dir
Rem date is a command and should be used a variable namedate is a command and should not be used as a variable name.
i got this code to create data folder but somehow it doesn't work perfectlyCode: [Select]@echo offSET date="%date:~6,4%-%date:~0,2%-%date:~2,2%"md D:\2\%date%xcopy /e C:\1\*.* D:\2\%date%@pausethe folder create is D:\2\2010-07-\2my system date format is 07/25/2010 Sun 15:22:52.92
C:\>date /tMon 07/26/2010C:\>echo %DATE%Mon 07/26/2010C:\>dateThe current date is: Mon 07/26/2010Enter the new date: (mm-dd-yy)C:\>
He's playing a game called IRL. Great graphics, *censored* gameplay.
The original poster( only_lonely ) used the command "date" as a personal variable:@echo offSET date="%date:~6,4%-%date:~0,2%-%date:~2,2%"