Discussion Locked

DOS script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How do I add a command to my daily backup batch file to create a directory with the system date appended to its name. For example, if today is Nov. 8th 2000, the new directory should be named 'bkup20001108' or something to that effect.

Many thanks.

5 replies

by pvp

Go to http://www.jsiinc.com and search for "date".

He's got some freebie scripts there, like JSDateMath that will handle getting the CCYY, MM and DD parts for you; you just have to put it in the right place and build your filename.

This discussion is closed to new replies.