?
Solved

Move files based on modified date

Posted on 2016-11-09
3
Medium Priority
?
98 Views
Last Modified: 2016-11-28
We have a user that normally sends an email with a list of files that were created on the same day.  We then go in, and move them from one server to a location the user has access to.  

Is there a way to do this in a batch file so the user can just run it on the day they need the files, and it automatically moves the files from that day?  

Basically want to take myself out as being the middle man, in case I am not available some day.
0
Comment
Question by:MRGCD-IS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Assisted Solution

by:AnthonyHamon
AnthonyHamon earned 400 total points (awarded by participants)
ID: 41880977
You can use robocopy as follows:

robocopy D:\source D:\destination /maxage:1

This will copy any file in D:\source modified in the last 24 hours to D:\destination
0
 
LVL 25

Accepted Solution

by:
NVIT earned 1600 total points (awarded by participants)
ID: 41881008
Since you want to move the files, you need the MOVE switch.

robocopy "D:\source folder" "D:\destination folder" "*.*" /maxage:1 /mov

Open in new window


If you'd like full automation, i.e. without the user running it, you can put the line in a scheduled task. This would be useful in case the user forgets to manually run it.
0
 
LVL 25

Expert Comment

by:NVIT
ID: 41903931
Award split accordingly.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question