11. Completing a Vision Application : imagename Command--Run a Completed Application : Creating a Command for an Imaged Application
 
Share this page                  
Creating a Command for an Imaged Application
Create a command that includes any of the parameters listed above. When the user enters the command name to access the application, any of the parameters that you specify are invoked automatically.
Windows: Specify a command and runtime parameters in an icon. For example, let users use the icon "runorders" to run the application "order_entry" in the c:\usr\userdir directory with "neworders" as the start frame.
To do this, create an icon called "runorders" that contains this line:
c:\usr\userdir\order_entry neworders
UNIX: Specify a command and runtime parameters by writing a shell script. For example, you could let users enter the command "runorders" to run the application "order_entry" in the usr/userdir directory with "neworders" as the start frame.
To do this, create a file called "runorders" that contains this line:
usr/userdir/order_entry neworders
Verify that you have placed the UNIX shell script in the directory path so that all users of the application can access it. See your operating system documentation for more information about writing shell scripts.
The previous example assumes that the image name is the same as the application name. If you specify an image name that is different from the application name, use the image name in the icon or shell script.
VMS: Specify a command and runtime parameters by defining a foreign command. For example, you could let users enter the command "runorders" to run the application "order_entry" in the $DISK1:[USERDIR] directory with "neworders" as the start frame.
To do this, enter the following command at the operating-system prompt:
$ RUNORDERS=="$DISK1:[USERDIR]order_entry.exe neworders"
The above example assumes that the image name is the same as the application name. If you specify an image name that is different from the application name, use the image name in the foreign command.
See your VMS operating system documentation for more information about creating foreign commands.
After you create the command, the user simply types "runorders" at the operating-system prompt and accesses the application beginning with the "neworders" frame.
For a summary of the ways in which users can run an application, see Vision Applications from a User Perspective.