Display Command Line Command

Created:12/13/2000
Description:

This command demonstrates the use of the CommandLine object. The sample displays the command line in its entirity then performs various actions on the parts of the command line, finally performing a search for a command line switch /E

How to use:
  1. In the Customize dialog, click on 'Add from file' and select this sample's dll.
  2. Under the Commands tab of the Customize dialog, select the Command Line command from the 'Developer Samples' category, and drag it on to a toolbar. Dismiss the Customize dialog.
  3. Click on the command.
  4. Test the command further by starting arcmap using various command line arguments.

Application:
ArcMap, ArcCatalog, ArcScene

Difficulty: Beginner


Visual Basic
File Description
clsCommandLine.cls Class file that implements the COM Server.
prjCommandLine.vbp VB Project File for sample.
prjCommandLine.reg Registry file for project.
prjCommandLine.dll Compiled project DLL.


Key CoClasses: CommandLine
Key Interfaces: ICommand, ICommandLine