Jump to content

A script to delete files created by certain owners


Recommended Posts

Posted

Hi chaps,

 

here's an interesting one for you :D

 

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 :D

Posted
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.

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



  • 47 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...