Carrying Out Add-in Commands
Home Page (Add-ins) | Overview | How Do I ... Topics | FAQ | Reference
After connecting an add-in to the development environment, you can carry out the add-in's commands by using toolbar buttons or key sequences assigned to the commands.
Additionally, you can carry out commands by running them from the command line.
To run a command from the command line
Type msdev –exCommand
where Command is the name of the add-in command. This syntax Visual C++, and after the Visual C++ main window appears the command starts running.
After the add-in command completes, Visual C++ continues running. If you want Visual C++ to end, then the add-in command must call the Application object's Quit method when it completes.
Additionally, you can run a command according to a schedule. The following table shows how to schedule a command with Windows NT or Windows 95.
To schedule a command Do this With Windows NT Use the AT command to run msdev –exCommand
For example, to run the command "MyAddin" at 1:00 A.M, use the command:
AT 1:00am "msdev –ex MyAddin"
The AT command is available only with Windows NT.
With Windows 95 You must have the Plus Pack to schedule commands. With the Plus Pack, use the System Agent to run msdev –exCommand.
See Also How Add-in Commands Are Carried Out