Computing.Net > Forums > Programming > Dos Copy w/ Date in Filename ??

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.

Dos Copy w/ Date in Filename ??

Reply to Message Icon

Name: Michael McKenzie
Date: October 24, 2002 at 08:25:26 Pacific
OS: XP
CPU/Ram: 512 MB Ram
Comment:

I am looking for a simple dos/bat programming script that will copy all (*.*) the files and back them up to another directory WHILE adding the DATE in the file name.

So if c:\jobs has files "outstanding.txt" and "reports.txt" how would I copy those over to c:\backup with new file names "outstanding_10-24-2002.txt" and "reprots_10-24-2002.txt" ??

ADV(thanks)ANCE ~! :)

- Michael



Sponsored Link
Ads by Google

Response Number 1
Name: Burbble
Date: October 24, 2002 at 10:19:11 Pacific
Reply:
0

Response Number 2
Name: Michael McKenzie
Date: October 24, 2002 at 12:00:23 Pacific
Reply:

The link is definitely a good resource, but doesn't answer my question. I am trying to copy files from one location to another AND renaming the file to include the DATE... so it would be filenameDATE.doc but in grabbind a %date% value in DOS it uses the "/" which is not a proper filename character... Is there anyway to put the date in another format? or write it to a file and then remove the /'s and THEN make it a filename ?

Any help would be greatly appreciated.

- Michael


0

Response Number 3
Name: Burbble
Date: October 24, 2002 at 14:38:16 Pacific
Reply:

Ah, here's the link I was looking for!

http://www.batch.hpg.ig.com.br/index.htm

Specifically number 2 or number 5.

-Burbble


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


put program in memory htbml question



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Dos Copy w/ Date in Filename ??

append creation date to filename www.computing.net/answers/programming/append-creation-date-to-filename/16017.html

Retain folders' dates in treecopy www.computing.net/answers/programming/retain-folders-dates-in-treecopy/16159.html

dos copy files based on filename www.computing.net/answers/programming/dos-copy-files-based-on-filename/17353.html