Summary
The Windows doskey tool can be used to set up an alias for ArcIMS command line capabilities that can reduce the amount of typing necessary to perform a command.
Procedure
- In a text editor, create a new batch file named alias.bat.
The file can be saved to any location on your system. For this example, the file will be saved to c:\bin\alias.bat. - Add the doskey alias to this file using the syntax
Code:
doskey aliasname="Java filepath" com.esri.aims.admincore.cmd.Exec http://mymachine.domain.com uid pwd $*
Where:
· aliasname is the alias you assign.
· Java filepath is the complete file location to the Java.exe in the JRE used by ArcIMS Administrator.
· http://mymachine.domain.com is the host computer.
· uid is the user name used to log into ArcIMS Administrator or ArcIMS Manager.
· pwd is the password used to log into ArcIMS Administrator or ArcIMS Manager.
For example,
Code:
doskey arcims="c:\Program Files\ArcGIS\ArcIMS\Jre\j21.3.1_02\bin\java.exe" com.esri.aims.admincore.cmd.Exec http://arcimsserver.esri.com admin admin $*
- Save and close the file.
Next we need to confirm that the alias runs successfully. - Click Start > Run, type cmd.exe, and click OK to open the command prompt window.
- In the window, type in the batch file location and hit Enter to run it.
For example,
Code:
c:\bin\alias.bat
The command window should appear as follows once complete.
![[O-Image] doskey alias.bat](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000005459/00N39000003LL2C-0EM39000000wchs.png)
- Continuing in the command window, type in the aliasname and command using the syntax
Code:
aliasname function command/filename
Where:
· aliasname is the alias you assigned in the alias.bat file.
· function is "CMD" or "file".
· command/filename is the ArcIMS command or the complete file location to the ADMINCMD XML file.
Note:
A complete list of valid ArcIMS command line functions can be accessed from the link in Related Information below.
For example,
Code:
arcims CMD service
or
Code:
arcims file c:\ArcIMS\RefreshAllServices.xml
Using the "service" command as an example, the window should provide information about each service, appearing similar to this once complete.
![[O-Image] doskey alias.bat2](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000005459/00N39000003LL2C-0EM39000000wchr.png)