General discussion

Locked

DOS script

By cd_admin ·
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.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

DOS script

by pVp In reply to DOS script

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.

Collapse -

DOS script

by cd_admin In reply to DOS script

The question was auto-closed by TechRepublic

Collapse -

DOS script

by Mike (from Canada) In reply to DOS script

only name the directory by the system date since they contain a max of 8 letters.

Collapse -

DOS script

by cd_admin In reply to DOS script

The question was auto-closed by TechRepublic

Collapse -

DOS script

by cd_admin In reply to DOS script

This question was auto closed due to inactivity

Back to Desktop Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums