+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, A script to delete files created by certain owners in Coding and Web Development; Hi chaps, here's an interesting one for you Problem: 3 teachers have write access to student home directories in order ...
  1. #1
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,738
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    30

    A script to delete files created by certain owners

    Hi chaps,

    here's an interesting one for you

    Problem: 3 teachers have write access to student home directories in order to "correct" work. Whilst I dont have a problem with that, I dont want them to create files (circumventing student quotas) and clogging up the server. As I cannot stop them from creating files, the next best thing is to routinely delete the files they have created where the shouldnt have done.

    Can anyone propose a script that would scan a certain directory on a server(student home drives) and delete any files that are created by specified users

    It's for Windows server 2003/2008, so it could be a VB or BAT script I assume??

    Thank you please

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,996
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106
    I have some VBS code that find the files of a certain user. I will see if its relevant for you tomorrow as I wrote it about 3 years ago and cant quite remember it's content.

  3. #3
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,738
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    30
    Thanks Chris, that'd be ace

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 1st July 2014, 08:34 AM
  2. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 13
    Last Post: 22nd February 2013, 03:53 PM
  3. Script to delete certain files
    By tri_94 in forum Scripts
    Replies: 9
    Last Post: 30th April 2008, 04:56 PM
  4. Replies: 5
    Last Post: 9th March 2008, 12:15 AM
  5. Replies: 3
    Last Post: 25th September 2006, 12:27 PM

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
  •