Link to home
Start Free TrialLog in
Avatar of sopheak
sopheak

asked on

MOve file to another directory and rename it.

In windows 2003 server.

I want to copy a file from one folder to another and then rename the file in the destination to also include the current date.

Something like this, except I do not know how dynamically add the date part.

xcopy c:\2\cube.txt c:\1\cube01052009.txt

Thansk
sopheak
Avatar of mors3
mors3

stupid question, but will it always be the same file your copying from teh same folder to the same folder?
ie, will teh source always be c:\2\cube.txt and will the destination always be in c:\1\ ?
Avatar of sopheak

ASKER

yes the source will always be the same.  The destination will change according to the date.
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial