You can place a checkmark on Media Insert. $watcher = New-Object System.IO.FileSystemWatcher $watcher.Path = “C:\inetpub\$watcher.IncludeSubdirectories = $true $watcher.EnableRaisingEvents = $true Let’s say you want to start some process as soon as new media gets added to a folder. #SCRIPT TO MONITOR FOLDER FOR NEW FILES WINDOWS WINDOWS#Im coming from a Linux environment, so I dont know what are the usual to monitor this in a Windows environment (or monitoring tools whatsoever). Apparently, the size of extents has hit 2GB - and Progress wont work past that - we needed to open a new extent. The same event ID 4656 shows all accesses. I have a Progress DB installation to keep in check, and last week we hit some problems. As the script runs, the dfsr1.txt file builds correctly but what is emailed is only a partial. like John above what I get emailed is not what is shown on screen. #set watcher.Path to match the folder you want to monitor #watcher.Filter to be set to wildcard, you can exclude file types from # filesystemwatcher exclude files section #watcher.IncludeSubdirectories to be true, you can exclude directories from # filesystemwatcher exclude directory section You can see the new files name (C:Work filesNew Text Document) which is visible after you scroll down the side bar. Octoat 10:44 am Just what I was looking for so many thanks but.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |