Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: ocean10000
I am running a Win2003 web server. I have enforced quotas for all my clients, however, not all clients ftp to our server under necessary username for the quota.
I am looking to create a script that goes through our users folders (daily) and makes sure all the files have the correct owner and, if not, changes the owner.
I can create the script but don't know how to get or change the file owner. Does anyone know a way of doing this?
I'v not tried this but it might get you started dow the right track.
Set objFile = CreateObject("SecurityDescriptor")
objFile.Owner = "whatever"