Run program with start windows

start start

Запускает отдельное окно командной строки для запуска указанной программы или команды. Starts a separate Command Prompt window to run a specified program or command.

Синтаксис Syntax

Параметры Parameters

Параметр Parameter Описание Description
Задает заголовок, отображаемый в строке заголовка окна командной строки . Specifies the title to display in the Command Prompt window title bar.
/d

Указывает каталог запуска. Specifies the startup directory. /i /i Передает Cmd.exe среду запуска в новое окно командной строки . Passes the Cmd.exe startup environment to the new Command Prompt window. Если параметр /i не указан, используется текущая среда. If /i is not specified, the current environment is used. Служит для сворачивания (/min) или развертывания (/Макс) нового окна командной строки . Specifies to minimize (/min) or maximize (/max) the new Command Prompt window. Запускает 16-разрядные программы в отдельном пространстве памяти (/сепарате) или общей памяти (/Shared). Starts 16-bit programs in a separate memory space (/separate) or shared memory space (/shared). Эти параметры не поддерживаются на 64-разрядных платформах. These options are not supported on 64-bit platforms. Запускает приложение в указанном классе приоритета. Starts an application in the specified priority class. /аффинити /affinity Применяет указанную маску схожести процессоров (выраженную в виде шестнадцатеричного числа) к новому приложению. Applies the specified processor affinity mask (expressed as a hexadecimal number) to the new application. /Wait /wait Запускает приложение и ждет его завершения. Starts an application and waits for it to end. /елевате /elevate Запускает приложение от имени администратора. Runs application as administrator. /b /b Запускает приложение, не открывая новое окно командной строки . Starts an application without opening a new Command Prompt window. Обработка CTRL + C игнорируется, если приложение не поддерживает обработку CTRL + C. CTRL+C handling is ignored unless the application enables CTRL+C processing. Чтобы прервать работу приложения, используйте сочетание клавиш CTRL + BREAK. Use CTRL+BREAK to interrupt the application. [ [

. ]] Указывает запускаемую команду или программу. Specifies the command or program to start.

Указывает параметры для передачи в команду или программу. Specifies parameters to pass to either the command or the program. /? /? Отображение справки в командной строке. Displays help at the command prompt.

Комментарии Remarks

Вы можете запускать неисполняемые файлы с помощью сопоставления файлов, вводя имя файла в виде команды. You can run non-executable files through their file association by typing the name of the file as a command.

При выполнении команды, содержащей строку CMD в качестве первого маркера без квалификатора расширения или пути, команда CMD заменяется значением переменной COMSPEC. If you run a command that contains the string CMD as the first token without an extension or path qualifier, CMD is replaced with the value of the COMSPEC variable. Это не позволяет пользователям выбирать cmd из текущего каталога. This prevents users from picking up cmd from the current directory.

Если вы запускаете приложение с 32-битным графическим пользовательским интерфейсом (GUI), программа cmd не ждет завершения работы приложения, прежде чем вернуться в командную строку. If you run a 32-bit graphical user interface (GUI) application, cmd does not wait for the application to quit before returning to the command prompt. Такое поведение не происходит при запуске приложения из командного скрипта. This behavior does not occur if you run the application from a command script.

При выполнении команды, использующей первый токен, который не содержит расширение, Cmd.exe использует значение переменной среды ПАСЕКСТ, чтобы определить, какие расширения следует искать и в каком порядке. If you run a command that uses a first token that does not contain an extension, Cmd.exe uses the value of the PATHEXT environment variable to determine which extensions to look for and in what order. Значение по умолчанию для переменной ПАСЕКСТ: The default value for the PATHEXT variable is:

Обратите внимание, что синтаксис аналогичен переменной PATH с точкой с запятой (;) Отделение каждого расширения. Note that the syntax is the same as the PATH variable, with semicolons (;) separating each extension.

При поиске исполняемого файла, если нет совпадения с каким-либо расширением, запустите проверку, чтобы проверить, совпадает ли имя с именем каталога. When searching for an executable file, if there is no match on any extension, start checks to see if the name matches a directory name. Если это так, то Start открывает Explorer.exe по этому пути. If it does, start opens Explorer.exe on that path.

Примеры Examples

Чтобы запустить программу MyApp из командной строки и использовать текущее окно командной строки , введите: To start the Myapp program at the command prompt and retain use of the current Command Prompt window, type:

Чтобы просмотреть раздел справки по командной строке в отдельном окне командной строки с развернутым окном, введите: To view the start command-line help topic in a separate maximized Command Prompt window, type:

How to make a Program run on startup in Windows 10

There may be some programs that you may want to always run on startup or boot. Let us say that the first thing you always do is fire up your browser and start browsing the web. Sure, when your Windows PC boots to desktop, you can always fire up your browser manually and enter the URL, but if you wish to make it auto-start, then you can easily make Programs, like say a Browser, run on startup automatically every time in Windows 10/8/7.

Make a Program run on startup in Windows 10

First, you want to check in the Program’s settings and see if there is a setting that allows you to make it run at every startup. If there is then it answers the question easily. If not, then there are three other ways you can do it. Let us take a look at them:

1] Place Program shortcut in Startup folder

The simplest way would be to place a shortcut of the Program in the Windows Startup folder.

The Current Users Startup folder in Windows is located at:

These programs start up for the current logged in user only. To directly access this folder, open Run, type shell:startup and hit Enter.

The All Users Windows startup folder is located at:

To open this folder, bring up the Run box, type shell:common startup and hit Enter.

You can add shortcuts to the programs you want to start with your Windows in this folder.

2] Add Programs to startup using freeware

While the built-in MSCONFIG or System Configuration Utility allows you to disable or delete startup entries, it does not allow you to add startup programs. There are many free tools that let you manage startup programs.

To add startup programs easily, you can make use of freeware like Chameleon Startup Manager or Quick Startup. Both are feature-rich startup managers that let you easily add startup programs along with their launch parameters.

3] Make Program run with Windows boot via Registry

You can make use of the Registry Startup Paths to add programs to start with every boot. You can use the Run and RunOnce registry keys to make programs to run each time that a user logs on or run just once.

The registry keys are located here. They are for Current User and for All Users – Run every time or run just once:

You can read more about this on MSDN.

4] Use Task Scheduler to make programs run at startup

You can create a Basic Task Wizard using Windows Task Scheduler to make a program start at boot every time, by using the When the computer starts option as the Task Trigger.

PS: This post will show you how to open Windows Store apps on startup.

Automatically run program on Windows Server startup

I am trying to install an app on a windows server that is always on, but I am running into problems. I have heard that I should not make it a Windows service (and would personally rather have a dialog app so I can see progress, etc) so I am trying to use the task scheduler. However, the task scheduler keeps trying to close my app prematurely, when it should only open it and leave it open.

Any ideas how I could have a dialog app run on startup (and stay running) on my server?

4 Answers 4

You should make a Windows Service; it’s the only reliable way to do this.
Otherwise, you will run into problems if, for example, the user logs off.

If you want UI, you can make a separate GUI that communicates with the service (probably using WCF).

You can do it with a Scheduled Task which wont have problems with users logging on/off.

  1. Open Task Scheduler, Windows Key + R
  1. Click Action menu > Create Task

  1. Change the User to a Administrator or preferably a Service Account:

  1. Set At Log On:

  1. Set a program to start:

It’s a very old question, but for those who coming here via Google:

Start the command prompt and type shell:Startup

This will open a window in the otherwise hidden AppData path for the Startmenu/Programs/Startup -> Add a shortcut to the executable for the program you want to start.

This will of course only apply to the logon account that you’re using at the time.

For all users type shell:Common Startup

I prefer to create a task in the Task Scheduler and set the trigger as «On Startup», but you can also use Startup Scripts.

6 ways to open the Run command window in Windows

The Run command window allows you to launch programs, open files and folders, and access internet resources in Windows. Just type a path or a quick command into the Windows Run box, and then click OK or press Enter to use a Run command. Although the Run shortcut is not as easy to find in recent Windows versions, the tool still exists, and there are plenty of ways to access it. This tutorial illustrates how to open Run in Windows 10 and Windows 7:

1. Open the Run command window with a keyboard shortcut

The fastest way to access the Run command window is to use the keyboard shortcut Windows + R. On top of being very easy to remember, this method is universal for all versions of Windows. Hold down the Windows key and then press R on your keyboard.

The Run window is immediately displayed in the lower-left corner of the screen.

2. Use Search to open the Run command window

As always in Windows, Search is a great idea to find just about anything. If you are using Windows 10, first type the word “run” inside the Search bar.

Then, click or tap on the relevant search result or press Open from the pane on the right.

In Windows 7, click the Start button and type the word “run” in the Start Menu Search box. Then, click the appropriate result to launch the Run command window.

3. Open the Run command window from the Start Menu

The Start Menu is a reliable way to access features on your Windows computer or device, including the Run window. In Windows 10, access the Start Menu by clicking or tapping on the Windows logo in the lower-left corner or by pressing the Windows button on your keyboard. Then, scroll down to the letter W, open the Windows System folder, and press Run.

In Windows 7, open the Start Menu and then access “All Programs -> Accessories -> Run” to launch the window.

Alternatively, you can also customize your Windows 7 Start Menu to permanently display a Run shortcut in the right-hand pane. To learn how to do that, read The complete guide to the Windows 7 Start Menu.

4. Use the Command Prompt (CMD) to open the Run window

Some of my colleagues love the CMD, so we decided to put this in for other fans, even if it’s not as easy to remember as the other ways illustrated in this article. To open the Windows Run, you can also launch the Command Prompt and enter the following:

explorer.exe Shell.

This method works both in Windows 10 and Windows 7.

5. Open the Run command window with PowerShell

Wondering how to open Run from PowerShell in Windows 10 and Windows 7? First, start PowerShell. Then, copy/paste or type in the following command:

(New-Object -ComObject “Shell.Application”).FileRun()

Press Enter on your keyboard, and the Run command window is immediately opened in the bottom-left corner.

6. Use the WinX power user menu to open the Run window in Windows 10

Windows 10 has a hidden power user menu that includes a shortcut for the Run command window. There are many ways to access this menu, the easiest being to use the Windows + X keyboard shortcut. Then, click or tap on Run or press R on your keyboard to open the Run box in Windows 10.

If the WinX power user menu interests you, you can learn more by reading: What is the WinX menu and how to open it.

What do you want to access using the Run window?

The Run command window was first introduced by Microsoft in Windows 95 and has been with us ever since. Some of us access it pretty often, but plenty of people don’t realize its potential and usefulness yet. We’re happy this feature caught your eye, but we are curious what brought you here. Are you looking for new ways to open the Windows Run command window or are you trying something new on your computer? Let us know in the comments.

Читайте также:  Как найти местоположение файла linux
Оцените статью