Buy Download

This is a collection of frequently asked questions about File Watcher. 

Other help resources

Questions

Q. How do I get FileWatcher to run a .VBS (Visual Basic script)?

A. On the Action tab, set the Command to the full path to WSCRIPT.EXE. Usually this is

	c:\Windows\System32\wscript.exe

Set Parameters to the full path to your .vbs script, and add %FILE% to the end to send it the name of the trigger file.

	<full path>\display_filename.vbs %FILE%

In this case, then create a batch file called display_filename.vbs, and copy the text below into it:

Option Explicit

dim objArgs 

'Set a reference to the arguments
Set objArgs = Wscript.Arguments

'display the first argument
MsgBox objArgs(0), vbOk

Q. How do I get FileWatcher to run a .JS (JavaScript script)?

A. On the Action tab, set the Command to the full path to WSCRIPT.EXE (yes, same filename for .vbs and .js scripts). Usually this is

	c:\Windows\System32\wscript.exe

Set Parameters to the full path to your .js script, and add %FILE% to the end to send it the name of the trigger file.

	<full path>\display_filename.js %FILE%

In this case, then create a batch file called display_filename.js

 

Other help resources

Buy Download