move data from a folder to recycle map when logoff

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of Jeremy-Smit Jeremy-Smit 1 month, 1 week ago.

  • Author
    Posts
  • #56350
    Profile photo of Jeremy-Smit
    Jeremy-Smit
    Participant

    The case:
    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. 

    The question:

    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?

  • #56362
    Profile photo of Wilfredo Perez
    Wilfredo Perez
    Participant

    Can you show us your script so we can help you?

  • #56372
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

    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.

  • #56483
    Profile photo of Jeremy-Smit
    Jeremy-Smit
    Participant

    I dont have started creating a script,

    Because simply dont know where to start for this particaly question,
    the question came from a colleague that is working with the autodesk vault

You must be logged in to reply to this topic.