TamoSoft: Network Analysis Tools & Security Software
Contents

CountryWhois Help Documentation


    Return to the main product page
 
Command Line Parameters


To load a CountryWhois archive, specify its file name as the first parameter:

cwhois.exe c:\archive.cwh

When querying IP addresses or hostnames, the "-q" parameter should precede the query string:

cwhois.exe -q 207.105.83.90
cwhois.exe -q 207.46.197.113;google.com

To load a batch file for processing, specify at least two parameters. The first one defines the file format:

-bi   Text containing IP addresses   
-bl   List of IP addresses
-bh   List of hostnames   
-ba   Auto detect   

The second parameter should contain a file name for processing:

cwhois.exe -bl c:\webaccess.log

It is also possible to specify an output file name and its format. The third parameter would then define the output file format:

-ocwh   CountryWhois Archive   
-otab   Text File (TAB delimited)   
-ospc   Text File (Space delimited)   
-ocsv   Text File (Comma delimited)   
-ohtm   HTML File   
-oxml   XML File   
-oxls   XLS File   

The parameter defining the output file format should go right after the name of the file being processed. The forth parameter should contain the output file name, e.g.:

cwhois.exe -bi c:\webaccess.log -ocwh c:\results.cwh

If a file name contains spaces, it should be enclosed in quotes:

cwhois.exe -bi "c:\my documents\webaccess.log" -ocwh "c:\my documents\results.cwh"

If you use an output file name, you can also use the "-c" parameter. This parameter tells the program that it should close after processing and saving results.

cwhois.exe -bi c:\webaccess.log -ocwh c:\results.cwh -c

To prevent opening (or activation) of the main window when querying or processing batch files, the additional "-h" parameter may be used. It should always be the last one or precede the "-c" parameter, e.g.:

cwhois.exe -q 207.105.83.90 -h
cwhois.exe -q 207.46.197.113;google.com -h
cwhois.exe -bi c:\webaccess.log -h
cwhois.exe -bi c:\webaccess.log -ocwh c:\results.cwh -h
cwhois.exe -bi c:\webaccess.log -ocwh c:\results.cwh -h -c

See also: Query Types, Working With Files, Batch Processing