Avatar of tmigs
tmigs

asked on 

.bat file needed

I need a .bat file that will move file9s) based on date modified from one folder to another and then delete older file(s) in the destination folder, i.e.:

move from F:\epic\epic_daily\backups\"filename.bak"(based on most recent date modified) to
Y:\...\...\...

once complete I would like to automatically delete the older file(s) in the folder on Y:\
Microsoft DevelopmentMicrosoft Legacy OS

Avatar of undefined
Last Comment
tmigs
Avatar of Ken Butters
Ken Butters
Flag of United States of America image

This is not a .bat file... but it will do what you are asking.

It is free for personal use.... otherwise I believe there is a fee for business use.

http://allwaysync.com/

I recently recommended this in another experts-exchange question... and the author really liked it after he tried it.
Avatar of hafeezmca
hafeezmca
Flag of United Arab Emirates image

Hi,
Try to use Microsoft Synctoy 2.0 which will do the task that you are looking out for instead of creating batch file.
You can configure it to copy files from target to destination and keep or delete the files from the target.
ASKER CERTIFIED SOLUTION
Avatar of Francois_IT
Francois_IT

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of tmigs
tmigs

ASKER

Thanks. This is exactly what I was looking for.

Thanks for the other responses but Robocopy is what the Dr. ordered.
Microsoft Legacy OS
Microsoft Legacy OS

The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.

55K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo