Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Your site has saved me hours of work that I cannot begin to express my satisfaction..."

Geography

Where in the world do Tek-Tips members come from?

VBScript to move files and folders based on date last modified

PCnerd73 (MIS)
16 Aug 12 15:21
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!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close