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
Microsoft DOS

Avatar of undefined
Last Comment
TekServer

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Qlemo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
TekServer

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.)

:)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes