I have a script which takes files from a folder and puts them into an archive based upon the date and time (that's the basics).
If the folder does not exist it is created.
The file is available to users to amend.
Ideally, I'd like to not allow them to be able to delete the file, but unfortunately, the tool used to amend the file, creates a temp file, deletes the existing file and then renames the temp file to the original filename as its "save amended" data method.
Is there a command I can issue which will only allow the creator and domain admins the ability to delete the folders that have been created.
The command will be incorporated into the script.
The script file is a BAT/CMD and is run unattended.
Alternatively, is there something I can do to the root of the folders which propogates down the folder chain for all existing and new folders so that only domain admins and the creator can delete the folder.
This must not interfere with file permissions.
Thanks in advance,