I have a batch file that does a simple XCopy over my network to backup my
ArgoSoft mail users and web directories.


I want to create an archive folder for each run WITHOUT having to pass
anything to the file. Can I set and format a Date and time VAR in a batch
file kind of like this?


SET  TodayDate = DateFormat(Now(),'YYMMDD')
SET NowTime = TimeFormat(Now(),'hhmm')


MKDIR $TodayDate
MKDIR $TodayDate\$NowTime


XCOPY [Source] [Destination\$TodayDate\$NowTime] /[Switches]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to