Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript to move files and folders based on date last modified

Status
Not open for further replies.

PCnerd73

MIS
Aug 16, 2012
1
US
I need to move a large amount of files from our server we use for our end user's "personal" folders. I need something that will MOVE files based on date last modified, and keep the same folder structure in the new location. I have spent a few hours researching how to do this, and VBScript seems to be the way to go. Unfortunately, I know absolutely nothing about it. I know a BAT file won't work, and robocopy doesn't seem to do the job either. I'm not sure how complicated the folder structure is, as each user's folder will more than likely be completely different. The base path would be \\servername\Users$\username, but any further than that I couldn't tell you how deep the folder structure goes without poring through each folder individually. I also need something we can run on a regular basis to keep the server clean, possibly every 6 months or once a year. If it is at all possible, it'd be great to keep the same security settings on the new folders created, but I'm not sure that that is possible. If anyone could pop out a script for me, I'd sure appreciate it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top