Jump to content

Recommended Posts

Posted

Afternoon all,

 

Has anyone got a script that I can run on a student directory to delete any folders or files in their user area but ignore folders named 'save' ?

 

Basically the last few years the previous network manager cleared the student home drives of rubbish by making them move anything they wanted to keep into a folder named save.

He and his technicians then manually went through student by student and deleted and files/folders that weren't in the save folder.

 

I'm looking for a quicker method to do the same.

 

Regards

Dan

Posted
You could use robocopy to move the files apart from stuff in a folder called save (using /xd switch). Then delete to stuff in the destination.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...