Windows Server 2008 R2 Thread, Deleting folders in user areas but ignoring folder called 'save' in Technical; Afternoon all,
Has anyone got a script that I can run on a student directory to delete any folders or ...
23rd July 2012, 01:53 PM #1
- Rep Power
Deleting folders in user areas but ignoring folder called 'save'
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.
IDG Tech News
23rd July 2012, 02:29 PM #2
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.
By burgemaster in forum Scripts
Last Post: 22nd November 2012, 09:33 PM
Last Post: 16th July 2010, 12:56 PM
By K.C.Leblanc in forum Windows
Last Post: 12th February 2010, 11:39 AM
By kennysarmy in forum Scripts
Last Post: 2nd July 2008, 05:20 PM
By tosca925 in forum Windows
Last Post: 27th April 2007, 09:32 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)