[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3466
  • Last Modified:

How to find files by specific date



Question: This should be simple, but I do not know how to do it.  How do I get a list of files on SBS2003 that have been created after a specific date.  I then want to take that list and copy these files to our new file server.
0
jonelr70115
Asked:
jonelr70115
  • 2
2 Solutions
 
Joseph DalyCommented:
This can be done using microsoft's robocopy utility. You will want to use the /minage switch.

More description can be found here
http://ss64.com/nt/robocopy.html
0
 
Joseph DalyCommented:
Actually I was alittle backwards in my post. You want to use the /maxage switch. This way you will only copy files newer than the date you specify.
0
 
lmoore101Commented:
The built in Windows search can do this.  Start>Search
Enter the file name or *.* for all files
Choose the "Look in path"
Click "When was it modified?"
Click "Specify dates" and enter the date range
Click "More advanced options"
Make sure to check Search system folder and hidden files if necessary.
Click "Search subfolders
Click "Search"

This should list all files that were created in the range you selected.  The files could then be copied to another folder or server.

If you wanted to script the file/folder copy use robocopy.exe.
robocopy.exe source destination /s /z /r:1 /w:5 /maxage:n
n can equal # of days "90" or n can equal a specific date entered as YYYYMMDD

Good luck!
0
 
jonelr70115Author Commented:
Both solutions will work, but the built-in Windows search is the simpler of the two choices for what I want to do.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now