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
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"
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.
Summary: I want to use the date as part of the logfile naming convention in MS-DOS, here is an example ... 022502backuplog.txt I am running version 5.00, please help!?!?! ...
Summary: jboy wrote: > Bit of a disappointment for Dosshell fans... > ...and some features won't work, even with DOS622... I was greatly disappointed when I discovered that MS-DOS v6.22 does NOT come with DOSS...
Summary: heres what i can up with... @echo off set curndate=%date% set curndate=%curndate:~4,20% echo %curndate% pause>nul of course this wont allow you to save that as a file name. i'll cheack back with you a...