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%"
We know you are Billrich. All the questionmark smileys in the world won't change that.
I remember this from my childhood. That cat is kind of a *censored*
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 created is D:\2\2010-07-\2my system date format is 07/25/2010 Sun 15:22:52.92
I'm sorry the thread got off topic.
The regular members never insult those asking for help.
@echo off:: variablesset drive=D:\2SET date="%date:~6,4%-%date:~0,2%-%date:~3,2%"set backupcmd=xcopy /s /c /d /e /h /i /r /k /yecho ### Backing up your Sites directory...%backupcmd% "C:\1" "%drive%\%date%"echo Backup Complete - Your Backup is located at %drive%@pause