troubleshooting Question

Scripting- Move files by name and previous date

Avatar of occredit
occreditFlag for United States of America asked on
Microsoft DOS
16 Comments4 Solutions342 ViewsLast Modified:
Experts, I need help creating a script to move a file by name and previous date. The file is created with the same name every time but with a previous date. The script needs to run daily and must grab only the previous date. For example if today’s date is 8/9/2011, it need to move only the file name XBAL268_080811.


Files in the incoming directoy:
XBAL268_080611
XBAL268_080711
XBAL268_080811

Thanks for your support in advance!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 4 Answers and 16 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros