B bilbo1161 Beta member Messages 1 May 23, 2011 #1 Can anyone help me? I need some way of monitoring a folder for a creation of a certain file. If this file exists I want it to be automatically deleted. Is there a way to do this? operating system is windows server 2003.
Can anyone help me? I need some way of monitoring a folder for a creation of a certain file. If this file exists I want it to be automatically deleted. Is there a way to do this? operating system is windows server 2003.
office politics It's all just 1s and 0s Messages 6,555 Location in the lab May 23, 2011 #2 i would try to create a powershell script to scan the folder and delete the file. task scheduler can be set to run the script every X minutes. this may help build the script Powershell: Delete files containing a string « Keith Bloom's Blog
i would try to create a powershell script to scan the folder and delete the file. task scheduler can be set to run the script every X minutes. this may help build the script Powershell: Delete files containing a string « Keith Bloom's Blog
J Jupiter 2 Baseband Member Messages 25 May 30, 2011 #3 If the file is being used by another, or the same, application then you may have problems deleting that file and your program will possibly crash.
If the file is being used by another, or the same, application then you may have problems deleting that file and your program will possibly crash.