Link to home
Start Free TrialLog in
Avatar of ilias
iliasFlag for Oman

asked on

Batch file to copy from one folder to another by rename files

Hi  Experts

How to write a batch file which can copy all files from one folder to another and rename the files adding date and time with the filename in destination folder.


Regards
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany 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
If you want a great deal more granular control, you can try xxcopy:  http://www.xxcopy.com.

It takes a bit of learning time to search through the HUNDREDS of command line switches to find exactly what you want, but xxcopy will handle every conceivable permutation of copy/move/rename/archive type operations.  Best of all, it's free for personal use, and reasonable for commercial use.

(I just realized I sound like a sales advertisement.  Let me assure you, I am not affiliated with the makers of xxcopy in any way; I've just used the product myself, to create a batch file that will copy certain files to an alternate location, and then delete any files in the destination that are over 1 year old, thereby creating a 1 year self-cleaning archive.  It's not what I'd call easy to use, but it is very powerful.)

:)