Hi,
I want to delete the indicator file and recreate it again so that file events get triggered and below is the code I m using.
REM Deletes and creates a new trigger file.
set FILEEVENT_PATH=\100.02.1.10\triggerfile$
IF EXIST %FILEEVENT_PATH%\First.ind (del %FILEEVENT_PATH%\First.ind /Q/S >nul
@echo off> %FILEEVENT_PATH%\First.ind)
IF EXIST %FILEEVENT_PATH%\Second.ind (del %FILEEVENT_PATH%\Second.ind /Q/S >nul
@echo off> %FILEEVENT_PATH%\Second.ind)
But this deletes and recreates the trigger file but file events are not triggered. If I delete and recreate the file it works good. Please suggest where it is going wrong?
bluecarbon (BOB member since 2008-11-08)