Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
The START command in Windows CMD is a versatile tool that allows users to open files, launch applications, or run scripts from the command line. This command is particularly useful for automating tasks, creating batch files, or simply speeding up your workflow by launching multiple applications or scripts simultaneously.
The basic syntax for the START command is as follows:
START [options] "title" [path/file] [parameters]
Opening a Text File with Notepad
To open a text file named example.txt
with Notepad, you can use:
START notepad.exe "C:\Path\To\Your\File\example.txt"
Launching a Web Browser
To open a website in your default web browser, use:
START "" "http://www.example.com"
The empty quotes are necessary because the URL is treated as the title if no title is specified.
Running a Batch File
To execute a batch file named script.bat
, use:
START "" "C:\Path\To\Your\Batch\script.bat"
Using START with Command-Line Options
To open a new command prompt window and run a command, you can use:
START cmd.exe /k "echo Hello, World!"
The /k
option tells CMD to execute the command and then remain open.
Opening an Application Maximized
To open an application maximized, use the /MAX
option:
START /MAX notepad.exe
Running an Application with a Specific Priority
You can also set the priority of the process using the /LOW
, /NORMAL
, /HIGH
, /REALTIME
, /ABOVENORMAL
, or /BELOWNORMAL
options. For example:
START /HIGH notepad.exe
CALL
command instead.