Computing.Net > Forums > Disk Operating System > Batch file to save date as part of file name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch file to save date as part of file name

Reply to Message Icon

Name: Dave Evans
Date: April 4, 2000 at 15:51:14 Pacific
Comment:

I would like to use a batch file to copy a file so that the new file includes the date:

i.e. save file as Today's date + a space + Final
the saved file would be named "04/04/2000 Final"



Sponsored Link
Ads by Google

Response Number 1
Name: browser
Date: April 5, 2000 at 05:16:44 Pacific
Reply:

DOS does not support the space in the filename. DOS does not support a filename with 16 characters (88888888.333 max.).


0

Response Number 2
Name: Malcolm Hunter
Date: April 6, 2000 at 03:53:57 Pacific
Reply:

I had this problem. There are a couple of free dos utilities which will fix it.
Strings.com (string25.zip) will split up the date fields and Aset.exe (advset14.zip) will enable you to construct a filename from that.
I can't remember where I downloaded the from but they're out there.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


'burnt' cd not readable u... Batch file command needed



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch file to save date as part of file name

Want to use $DATE as logfile name.txt www.computing.net/answers/dos/want-to-use-date-as-logfile-nametxt/9373.html

DOSHELL Bad Command Or File Name www.computing.net/answers/dos/doshell-bad-command-or-file-name/15934.html

Making a file name include date www.computing.net/answers/dos/making-a-file-name-include-date/13859.html