Microsoft Knowledge Base Email Alertz

(126410) - In Microsoft Windows 95/98 or Windows Me, you can start a Windows-based or MS-DOS-based program from the command prompt in an MS-DOS window. To do so, type the program's executable filename, or use the START command at the MS-DOS command prompt. For...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 126410 - Last Review: January 19, 2007 - Revision: 1.3

How to Start a Program From a Command Prompt in Windows

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
This article was previously published under Q126410

SUMMARY

In Microsoft Windows 95/98 or Windows Me, you can start a Windows-based or MS-DOS-based program from the command prompt in an MS-DOS window. To do so, type the program's executable filename, or use the START command at the MS-DOS command prompt.

For example, to start ScanDisk for Windows, type "scandskw" (without quotation marks) or "start scandskw" (without quotation marks) at the MS- DOS command prompt.

NOTE: You may use Start.exe to activate a shortcut as well as a program. For example, this may be useful when running an MS-DOS-based program from within a batch file that has specific requirements configurable in the shortcut's properties.

MORE INFORMATION

If you type only the programs's executable filename, Windows 95/98 or Windows Me searches the current folder, and then the folders on the path statement for the executable file. If the file is not found, you receive the following error message:
bad command or filename

If you use the START command, Windows 95/98 Windows Me searches the current folder, the folders on the path statement, and the registry. If the file is not found, you receive the following error message:
Cannot find file '<filename>' (or one of its components). Check to ensure the path and filename are correct and that all required libraries are available.

The START command is used at an MS-DOS prompt to start an MS-DOS-based or Windows-based program. The program is started as a separate task that can be run in the foreground or background. You can use the START command if you want to keep your current MS-DOS settings, while you run another MS- DOS-based program in the background.

You can use the START command to open files if its extension is a registered file type in Windows. For Example, if you type "start Readme.txt," Notepad is started and the Readme.txt file is displayed.

More information about the START command, type the following command at the MS-DOS prompt:
start /?

The following is a sample of the output when you do so:
Runs a Windows program or an MS-DOS program.

START [options] program [arg...]
START [options] document.ext

/m[inimized] Run the new program minimized (in the background).
/max[imized] Run the new program maximized (in the foreground).
/r[estored] Run the new program restored (in the foreground).

[default]

/w[ait] Does not return until the other program exits.

APPLIES TO
  • Microsoft Windows Millennium Edition
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows 98 Standard Edition
  • Microsoft Windows 95
Keywords: 
kbfaq kbhowto kbusage KB126410
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate