Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch file with date
Name: Jon Hunter Date: May 22, 2003 at 15:18:48 Pacific OS: won 2000 CPU/Ram: p3 128
Comment:
I am trying to write a bcakup program with pkzip that will label the file date and time. I have no probably wrting on that is set to make the file, just naming it differently so it wont keep overwriting the same file leaving me with one back up instead of several. ex. @ECHO OFF CD\ CLS ECHO INSERT A BLANK DISK INTO DRIVE "A:" PAUSE DELTREE /Y A:\*.* T:\DATA\pkzip -& A:Backup.zip *.* ECHO REMOVE THE DISK FOR THE LAPTOPS. cls cd\
But every file is named Backup.zip I would like to write one that makes it the current date and time
Summary: I am trying to create a batch file that will move a file to 2 different places and then rename the file by the date and time it was moved. I can get it to work with XP but W2k Pro gives me the error "...
Summary: Try this: Create a batch file called something like "frename.bat" with the following 2 lines: (Type the 1st line on one line): set NewFileName=%1%date:~4,2%%date:~7,2%%date:~10,4%.txt Rename %1 %NewF...
Summary: Which operating system do you want to use the batch file with? It's more usual to refer a batch file to a directory. Not sure what you are trying to achieve here unless it's to change the date format ...