WxRemote Help > Remote Commands
Remote Commands
Remote Commands are batch scripts (.bat or .cmd files) located on computers with WxListeners, that you can run remotely from the WxRemote Control Center.
By default, all output from the command is redirected to WxRemote Control Center where it appears in a popup window.
To run a command
- Right-click a task, select "Commands", then select the specific command.
To suppress the output popup window
- Start your script with the following line:
@ECHO NOSHOW
NB: The Options window "Show all output from remote scripts" setting overrides this.
Naming convention for Remote Commands
A Remote Command must be named as follows:
AA_B_CCCCCCCCCCCCCCCCC.DDD
-
AA: Which program the command affects. Must be one of the following:
"WD": WatchDirectory only.
"WF": WatchFTP only. -
B: Display the command on the popup menu for commands according to status:
"0": Stopped Tasks
"1": Running Tasks
"2": All Tasks
NB This just affects the menu. The script must check the TASKRUNNING environment variable to see if it can proceed. - CCCCCCC...: How the command appears on the popup menu.
- DDD: File extension. Either CMD or BAT.
Special Environment Variables available to Remote Commands
TASKNAME
The name of the selected task. For example: "CopyFiles".
TASKRUNNING
Before WxListener starts the script, it checks if the task is running (1) or not running (0).
WDDIR
Contains the full path to the directory where WatchDirectory stores its settings.
WFDIR
Contains the full path to the directory where WatchFTP stores its settings.