Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Index | Next >
Learning objective: (2) Explain the use of the START command in batch files
The START command allows you to launch a windows application from the command line in a window. Technically, START is *not* a batch file command, but it is often used in batch files, so we will introduce it here. You can also include switches unique to that application and other data like URLs to a Web browser assuming the application can accept the data being passed. Note that you can sequence a series of applications in the batch file.
"title"
The "title" option give a title to the window.
path
The path option will point to a specific path needed for the execution of the application. Note: The location of many cored Window applications are known to the system and the system will negotiate their location. Private applications may need the path command to direct the OS to the application.
/MAX
The /MAX switch will run the application in a maximized window.
/MIN
The /MIN switch will run the application in a minimized window. Useful for batch files as well.
/WAIT
The /WAIT switch will suspend the execution of the batch file until current application has been terminated. For example, if you wanted to play a series of songs, without the /WAIT command, they would all play at the same time since Windows is a multitasking environment. With the /WAIT switch, the next song will not start until the current one is finished.
Thinking: Why use a batch file to control window application?
Key terms: /WAIT, application, path, window
Resources:
To maximize your learning, please visit these Web sites and review their content
to help reinforce the concepts presented in this section.
Quick links:
MS-DOS Commands :: start @ c3scripts.com
Microsoft DOS start command @ computerhope.com
Notes on navigation: Click inside the frame to navigate the embedded Web page. - Click outside the frame to navigate this page to scroll up/down between the embedded Web pages. - Click on the frame title to open that page in a new tab in most browsers. - Click on the the "Reload page" link to reload the original page for that frame.
MS-DOS Commands :: start @ c3scripts.com |
Reload page
|
If frame is empty, click on the link to view the page in a new tab or window
Microsoft DOS start command @ computerhope.com |
Reload page
|
If frame is empty, click on the link to view the page in a new tab or window
Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Index | Next >