Script triggered by file creation

Welcome Forums General PowerShell Q&A Script triggered by file creation

This topic contains 1 reply, has 2 voices, and was last updated by

1 year, 10 months ago.

  • Author
  • #73987

    Topics: 2
    Replies: 2
    Points: 0
    Rank: Member

    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

    Topics: 1
    Replies: 284
    Points: 41
    Rank: Member

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

The topic ‘Script triggered by file creation’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort