Tips for Making Commands Shorter

If you use WMTool extensively from the command line by hand, you may want to make a short batch file or shell script to simplify using it. The example below assumes that you've saved WMTool in the directory.

Create a 1 line batch file named wmtool.bat

@java -jar c:\apps\workmobile\wmtool.jar %*

You can then run WMTool commands simply by calling the batch file. For example, to run the help command:

wmtool help

You could extend the batch file to include common parameters that you use regularly. For example, we'll amend the script to pass in our account username (we'd recommend for security reasons that you don't include the password).

@java -jar c:\apps\workmobile\wmtool.jar --username %*