WMS:Command Line: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
 
No edit summary
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
Several command line arguments can be used with WMS when it is launched. You can modify the properties of the shortcut that launches WMS and edit the Target item. More than one command line argument can be used at the same time.
Several command line arguments can be used with WMS when it is launched. These commands can modify the properties of the shortcut that launches WMS and edit the target file. More than one command line argument can be used at the same time.


The following command line arguments are available for WMS:
The following command line arguments are available for WMS. Be sure to include the quotes around the path if it includes spaces:


'''-dm <module>'''
*'''-about'''
*:Outputs a list of copyright and vendor information for WMS.
*:Example:
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -about</code>


The -dm command is used to specify the default module. Possible values include the following strings: tin, dem, map, tree, 2dgrid, 2dscat.
*'''-av'''
*:Specifies an ArcView/WMS Super file to open by WMS at startup.
*:Example:
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -av C:\models\wmsav1.sup</code>


Example: C:\Program Files\WMS81\wms81.exe -dm tin
*'''-dm <module>'''
*:Specifies the default module. Possible values include the following strings: data, drain, map, gis, tree, river, 2dgrid, and 2dscat.
*:Example:
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -dm drain</code>


'''-ini <path>'''
*'''-f <file file file...>'''
*:Specifies a file or files for WMS to open at startup.
*:Example:
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -f C:\models\flood.wpr C:\models\flood2.wpr C:\models\flood3.wpr</code>


The -ini command is used to specify the path to the initialization file (wms61.ini) which stores the default settings.
*'''-gsshakmz <file>'''
 
*:Opens a GSSHA project file and solution and writes a KMZ animation from the solution.
Example: C:\Program Files\WMS81\wms81.exe -ini C:\MyStuff
*:Example:
 
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -gsshakmz C:\models\gsshamodel.prj</code>
'''-tmp <path>'''
 
The -tmp command is used to specify the path to the temporary directory. The privileges on this directory must be such that WMS can write to it.
 
Example: C:\Program Files\WMS81\wms81.exe -tmp C:\Temp
 
'''-f <file file file...>'''
 
The -f command is used to specify a file or files for WMS to open at startup.
 
Example: C:\Program Files\WMS81\wms81.exe -f models/flood.wpr
 
'''-av <file>'''
 
The -av command is used to specify an ArcView-WMS super file for WMS to open at startup.
 
Example: C:\Program Files\WMS81\wms81.exe -av models/gisdata.sup
 
'''-about'''
 
The -about command is used to specify copyright and vendor information for WMS.
 
Example: C:\Program Files\WMS81\wms81.exe -about


*'''-help'''
*:The '''-help''' command displays usage information for WMS command line commands. The output should be directed at a text file.
*:Example:
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -help > C:\Users\jsmith\Desktop\tmp.txt</code>


==Related Topics==
==Related Topics==
* [[WMS:Setting Up WMS|Setting up WMS]]
* [[WMS:Setting Up WMS|Setting up WMS]]
* [[WMS:Running WMS for the first time|Running WMS]]




{{WMSMain}}
{{WMSMain}}
[[Category:WMS General Information]]

Latest revision as of 00:01, 28 January 2020

Several command line arguments can be used with WMS when it is launched. These commands can modify the properties of the shortcut that launches WMS and edit the target file. More than one command line argument can be used at the same time.

The following command line arguments are available for WMS. Be sure to include the quotes around the path if it includes spaces:

  • -about
    Outputs a list of copyright and vendor information for WMS.
    Example:
    "C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -about
  • -av
    Specifies an ArcView/WMS Super file to open by WMS at startup.
    Example:
    "C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -av C:\models\wmsav1.sup
  • -dm <module>
    Specifies the default module. Possible values include the following strings: data, drain, map, gis, tree, river, 2dgrid, and 2dscat.
    Example:
    "C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -dm drain
  • -f <file file file...>
    Specifies a file or files for WMS to open at startup.
    Example:
    "C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -f C:\models\flood.wpr C:\models\flood2.wpr C:\models\flood3.wpr
  • -gsshakmz <file>
    Opens a GSSHA project file and solution and writes a KMZ animation from the solution.
    Example:
    "C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -gsshakmz C:\models\gsshamodel.prj
  • -help
    The -help command displays usage information for WMS command line commands. The output should be directed at a text file.
    Example:
    "C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -help > C:\Users\jsmith\Desktop\tmp.txt

Related Topics