You can use command line parameters to perform the following
operations when the program is being launched:
·Load
and activate a rule set from a file. Use the "/ruleset" switch
followed by the file name and full path, e.g.:
CV.EXE /ruleset "C:\Program
Files\CommViewWiFi\Rules\POP3Rules.rls"
If a file name or its path contains spaces, it must be enclosed in
quotation marks (" ").
·Load
and activate a WEP/WPA key set from a file. Use the "/keyset"
switch followed by the file name and full path, e.g.:
CV.EXE /keyset "C:\Program Files\CommViewWiFi\WLAN3Keys.wep"
If a file name or its path contains spaces, it must be enclosed in
quotation marks (" ").
·Use
the specified folder for storing log files. Use the /logdir switch
followed by the full path to the folder, e.g.
CV.EXE /logdir "C:\Program Files\CommViewWiFi\Logs"
·Launch
the application without the prompt to install the driver. This is
useful when you use CommView for WiFi for loading logs collected
from other computers or for connecting to Remote Agents. Use the
/noprompt switch, e.g.
CV.EXE /noprompt
·Connect
to one or several remote agents. Use the "/ra" switch followed by
the IP address or hostname of the Remote Agent you'd like to
connect to, followed by the password in quotation marks, followed
by the channel number that should be monitored (the channel index
is 1-based, i.e. if you need to monitor in scanner mode, use "1";
if you need to monitor the first channel, use "2"), e.g:
CV.exe /ra 192.168.0.5 "MyPassword" 2
To connect to multiple Remote Agents from the same CommView for
WiFi instance, use a batch file that should look like this:
START "CV" "C:\Program Files\CommViewWiFi\CV.exe" /noprompt
PING 1.1.1.1 -n 1 -w 5000 >NUL
START "CV" "C:\Program Files\CommViewWiFi\CV.exe" /ra 192.168.0.1
"pwd1" 5
PING 1.1.1.1 -n 1 -w 1000 >NUL
START "CV" "C:\Program Files\CommViewWiFi\CV.exe" /ra 192.168.0.2
"pwd2" 5
PING 1.1.1.1 -n 1 -w 1000 >NUL
START "CV" "C:\Program Files\CommViewWiFi\CV.exe" /ra 192.168.0.3
"pwd3" 5
PING 1.1.1.1 -n 1 -w 1000 >NUL
This script launches CommView for WiFi, waits for 5 seconds to make
sure that the application is loaded (we use the PING command to
pause because there is no direct way of telling a .BAT file to
pause), then we pass to the application the IP addresses,
passwords, and adapter numbers of three Remote Agents (with
one-second pauses).
You can use all of these parameters, except the last one, at the
same time.
|