Solved

Move files based on modified date

Posted on 2016-11-09
3
70 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 100 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 24

Accepted Solution

by:
NVIT earned 400 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 24

Expert Comment

by:NVIT
ID: 41903931
Award split accordingly.
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

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…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
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…

691 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