Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

FolderMonitor for the 1st time not working

Jul
14
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.
 
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.
 
No quotes are needed on the command. TCC will use everything after FOREVER. You might have to escape sensitive characters.
 
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.
 
I think you need quotes around the file name. This is OK here.

1624901166640.png
 

Similar threads

Back
Top