MS-DOS

Moderators: blip
Number of threads: 389
Number of posts: 904

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
passing file name variable to XCOPY? Posted by KlausEngel on 20 Aug 2012 at 4:41 PM
I need to copy a file from one directory to another directory using xcopy. The file that I need to copy is always named differently based on the date it was created.
My questions are:
a)how can I construct the file name dynamically, e.g. 2012-08-08-tfile.txt
and
b) can I pass this file name to xcopy

Thanks for your help.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.