Computing.Net > Forums > Windows 2000 > Batch file with date

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
Name: Tripanfal
Date: May 23, 2003 at 06:54:01 Pacific
Reply:

I'm fairly certian you will get a better response posting this under the programming forum.


0
Reply to Message Icon

Related Posts

See More


Monitor Trouble Recovering Outlook 2000 p...



Post Locked

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


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Batch file with date

Rename a file with date and time www.computing.net/answers/windows-2000/rename-a-file-with-date-and-time/58934.html

bat file to rename file with date www.computing.net/answers/windows-2000/bat-file-to-rename-file-with-date/55851.html

Batch File directory creation www.computing.net/answers/windows-2000/batch-file-directory-creation/12896.html