Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xcopy file to another folder using date as file name

Status
Not open for further replies.

jpkeller55

Technical User
Apr 11, 2003
131
US
I am trying to run the following simple batch file to copy a file every night into a folder called Backups. I plan on using the task scheduler to run the batch file. I would like the copied file to somehow contain today's date in the file name but don't know how to do it.

Anybody?

Code:
w:
xcopy/Y  W:\Chicag~1\Storage\Curren~1  W:\Chicag~1\Backups

exit

Thanks, Jim
 
Sorry, I forgot to change the forum. Thanks for the link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top