WMS:Command Line: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 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. A user 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'''
*:The '''-dm''' command is used to specify the default module. Possible values include the following strings: tin, dem, map, tree, 2dgrid, 2dscat.
*:Outputs a list of copyright and vendor information for WMS.
''Example -dm <module>:''
*:Example:  
C:\Program Files\WMS81\wms81.exe -dm tin
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -about</code>


*'''-ini <path>'''
*'''-av'''
*:The '''-ini''' command is used to specify the path to the initialization file (wms61.ini) which stores the default settings.
*:Specifies an ArcView/WMS Super file to open by WMS at startup.
''Example -ini <path>:''
*:Example:
C:\Program Files\WMS81\wms81.exe -ini C:\MyStuff
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -av C:\models\wmsav1.sup</code>


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


*'''-f <file file file...>'''
*'''-f <file file file...>'''
*:The '''-f''' command is used to specify a file or files for WMS to open at startup.
*:Specifies a file or files for WMS to open at startup.
''Example -f <file file file...>:''
*:Example:
C:\Program Files\WMS81\wms81.exe -f models/flood.wpr
*::<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>
 
*'''-av <file>'''
*:The '''-av''' command is used to specify an ArcView-WMS super file for WMS to open at startup.
''Example -av <file>:''
C:\Program Files\WMS81\wms81.exe -av models/gisdata.sup


*'''-about'''
*'''-gsshakmz <file>'''
*:The '''-about''' command is used to specify copyright and vendor information for WMS.
*:Opens a GSSHA project file and solution and writes a KMZ animation from the solution.
''Example -about:''
*:Example:
C:\Program Files\WMS81\wms81.exe -about
*::<code>"C:\Program Files\WMS 11.0 64-bit\WMS110.exe" -gsshakmz C:\models\gsshamodel.prj</code>


*'''-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==
Line 39: Line 38:


{{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