Script triggered by file creation

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Matt Bloomfield Matt Bloomfield 3 weeks, 6 days ago.

  • Author
  • #73987
    Profile photo of ChrisN

    I would like this script to start "Remove-Item C:\folder\* -recurse" , 30 minutes after a document is saved in the specific folder. Any ideas?

  • #74006
    Profile photo of Matt Bloomfield
    Matt Bloomfield

    If you're using FSRM you could use Active File Screening to trigger the script. Alternatively, use the FileSystemWatcher class.

You must be logged in to reply to this topic.