I have an existing WD task which executes a batch file as soon as an audio/video file is created or deleted using fast monitoring method. How can I prevent this from happening if a *.tmp folder exists? I swear, I tried to figure out how to do this based on your previous suggestion (in the above URL), however, I can't figure it out for this existing WD task. I really appreciate your all your help.

People asking things. I create a script according to their wishes. Then they come with extra information (must remove directory immediately)... This happens sooooo often (on the forum and by email), it is sometimes a bit frustrating. There are days I just smile about it, today is not such a day.

Add this to the top of your current bat file:[code]rem check if there is a tmp folder somewhere below the monitored directoryDIR /s /ad "%WD_DIR%\*.tmp"if %errorlevel% EQU 0 GOTO :EOF[/code]

This checks if a *.tmp directory exists somewhere below the monitored directory (%WD_DIR%) and if it does (errorlevel = 0) quits the script (GOTO :EOF).

Gert, you are a very good person. You always help your users out; even the weirdest possible requests. WD is such an amazing software; however, what makes it "extraordinary" is the support you offer to your users. The best way I can show my appreciation is to tell others about your amazing software and to donate to a charity that needs help. Thank you.