+ Post New Thread
Results 1 to 2 of 2
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 ...
  1. #1

    Join Date
    Jul 2007
    Location
    West Sussex
    Posts
    264
    Thank Post
    35
    Thanked 11 Times in 11 Posts
    Rep Power
    16

    Deleting folders in user areas but ignoring folder called 'save'

    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

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,054
    Thank Post
    888
    Thanked 1,729 Times in 1,492 Posts
    Blog Entries
    12
    Rep Power
    454
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 22nd November 2012, 08:33 PM
  2. Replies: 3
    Last Post: 16th July 2010, 11:56 AM
  3. .net Assembly Folder, in user's home directories.
    By K.C.Leblanc in forum Windows
    Replies: 1
    Last Post: 12th February 2010, 10:39 AM
  4. Replies: 1
    Last Post: 2nd July 2008, 04:20 PM
  5. Replies: 3
    Last Post: 27th April 2007, 08:32 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •