we gonna use software autodesk vault software, and a specific folde named Workingfolder must be cleaned / emptied every time the user is logged off from his pc. but to have a save fall back we want, that the data from the folder first is moved to the recycle bin and if it is possible configure then that the recycle bin is emptied every 7 days.
Is it possible to create a oneliner / script to:
move data from a specific folder (like workingfolder on C:\) to the recycle bin and make sure that people cant empty the recycle bin by them self but it is emptied every 7 days?
If the AutoDesk Vault software requires that the WorkingFolder folder is emptied, then the software should clear it at Shutdown\Startup. If it's a manufacturer requirement or recommendation, I would talk to them versus scripting it.
Locking down the Recycle Bin, if possible, would be a policy (GPO). If you want to clear the Recycle Bin every 7 days, I would look at making a local scheduled task for that, but it's risky if a VP is working on slide deck for a week, accidentally deletes it and then you wipe the Recycle Bin. I've worked at places where users used the Temp directory as a working directory storing documents. I'd be careful implementing a forceful removal of something like the Recycle Bin.