FolderMonitor for the 1st time not working

Jul 11, 2017
9
0
I wish to ping 8.8.8.8 when the file "C:\Users\tomwa\OneDrive\Test1\Test01.txt" is modified.

In TCC I've typed:

foldermonitor "C:\Users\tomwa\OneDrive\Test1" /I "\Test01.txt" /U MODIFIED FOREVER 'ping 8.8.8.8'

Nothing happens when I modifiy Test01.txt

Must be a syntax error. Any help is appreciated.
 
May 20, 2008
11,783
118
Syracuse, NY, USA
I don't think it likes the space after /I or the single quotes around the command. Single quotes are nothing special to TCC. Even with /I fixed,

Code:
'ping

is an unknown command.
 
May 20, 2008
11,783
118
Syracuse, NY, USA
No quotes are needed on the command. TCC will use everything after FOREVER. You might have to escape sensitive characters.
 
Jul 11, 2017
9
0
I changed the command to msgbox yesno "Copy" Copy all files to A:?

No msgbox when I modify a file in the directory.

foldermonitor C:\Users\tomwa\OneDrive\Test1 /I\Test01.txt /U MODIFIED FOREVER msgbox yesno "Copy" Copy all files to A:?

foldermonitor command now shows:

C:\Users\tomwa\OneDrive\Test1 MODIFIED (0/FOREVER) msgbox yesno "Copy" Copy all files to A:?

Why won't it just monitor file Test01.txt? msbox will not display when modifying the file.
 
May 20, 2008
11,783
118
Syracuse, NY, USA
I think you need quotes around the file name. This is OK here.

1624901166640.png
 

Similar threads