Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Need help appending date to file copy
Closed Thread
Old 04-09-2009, 12:03 PM   #1 (permalink)
 
True Techie

Join Date: Jun 2005

Posts: 233

Mr. LL is on a distinguished road

Default Need help appending date to file copy

I need to copy a file from one folder to another folder and add the days date, so that I have a new copy of the file every time I run the bat file.

Does anyone have a simple script to do this or know the syntax to use? I'm a little bit familiar with windows scripting but I don't know much about it. I am more familiar with creating simple bat files.

Thanks.
Mr. LL is offline  
Old 04-09-2009, 04:28 PM   #2 (permalink)
 
Banned

Join Date: Feb 2009

Location: Guantanomo Bay, Cuba

Posts: 546

SparkMonkeyHellion is on a distinguished road

Default Re: Need help appending date to file copy

you'd have to set up a loop, which is above my head, but the syntax for adding the date would be something like:

echo >> filename%date /t%.txt

or something like that... you might have to set "date /t" as a separate string.

You have to do the /t after date otherwise it's going to ask you for the new date.
SparkMonkeyHellion is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hijack This Log File (need help quick please) <-(BrOkEn)-> HijackThis Logs (finished) 8 03-04-2009 08:46 AM
Installing Ubuntu. 95BlackGA Linux, BSD, other *nixes & Open Source Software 1 10-16-2008 09:44 PM
New log enigm@tic HijackThis Logs (finished) 3 08-25-2008 10:17 AM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 12:30 PM