Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the batch command Start

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to use the batch command Start. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Start

Launch a separate Command prompt window to run the specified program or command. If you use it without arguments, start opens a second command prompt window.

Grammar

Start ["title"] [/ dPath] [/ I] [/ min] [/ max] [{/ separate | / shared}] [{/ low | / normal | / high | / realtime | / abovenormal | belownormal}] [/ wait] [/ b] [FileName] [parameters]

Parameters.

Title specifies the title that is displayed in the title bar of the Command prompt window.

/ dpatch specifies the startup directory.

/ I transfers the Cmd.exe startup environment to a new Command prompt window.

/ min starts a new minimization window.

/ max launches a new maximize window.

/ separate starts a 16-bit program in a separate memory space.

/ shared starts a 16-bit program in a shared memory space.

/ low starts the application with an idle priority.

/ normal starts the application with normal priority.

/ high starts the application with high priority.

/ realtime starts the application with real-time priority.

/ abovenormal starts the application in a way that exceeds the normal priority.

/ belownormal starts the application in a way that is lower than the normal priority.

/ wait starts the application and waits for it to finish.

/ b you do not have to open a new Command prompt window when you start the application. CTRL+C operations are ignored unless the application enables CTRL+C. Use CTRL+BREAK to interrupt the application.

A non-executable file can run through its file association as long as the file name is typed as a command. For more information about using assoc and ftype to create these associations in a command script, see.

When the first command you run is marked with a "CMD" string but does not include an extension or path qualifier, "CMD" is replaced by the value of the COMSPEC variable. This prevents the user from selecting cmd from the current directory.

When you run a 32-bit graphical user interface (GUI) application, cmd does not wait for the application to exit before returning to the command prompt. This new situation does not occur if you run the application from a command script. When the first symbol in the running command does not include the extension, Cmd.exe uses the value of the PATHEXT environment variable to determine the extension to look for and the search order. The default value of the PATHEXT variable is: COM;.EXE;.BAT;.CMD (the syntax is the same as the PATH variable, using semicolons to separate different elements). When you search for an executable and there is no match on any extension, start searches for the directory name.

Specific examples:

Note: if you are in the path of the program with spaces, then you must use "" to enclose the path, otherwise the system will prompt you not to find the XX file, in addition, when running some programs, you need to add a pair of blank "" in front of the path, which means to create a blank window, it points to the program is XXXXXXXX. And don't forget the spaces.

When I want to run "photoshop.exe" at "D:/draw/", I should use the following command:

Start "" D:/draw/photoshop.exe "means to run a program in a regular window

If you want the program to run in a maximized window, use the following command:

Start / max "D:/draw/photoshop.exe" means to run the program in a maximized window

Minimize. Here's how it works:

Start / min "D:/draw/photoshop.exe" means to run the program with a minimized window

Wait for a program to finish, that is, after the window is closed, then open the next program. This can be done like this:

Start / w "D:/draw/photoshop.exe"

Start "" cmd.exe

On "how to use batch command Start" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report