The start command is an internal command of the windows shell, it is a very powerful and useful command, in the following few lines you will find some examples of the start usage.
1. Open current directory in explorer
C:\> start .
2. Open a file with the default associated program
C:\> start file.txt
will open the text file file.txt with the editor configured as default for txt files in windows.
3. Open a new cmd command window and assign a title to the window
simply issue the command:
C:\> start "title" cmd
4. Open a new cmd command window and maximize the new window
C:\> start /MAX cmd
5. and naturally you can minimize the window….
C:\> start /MIN cmd
6. Start a new bat file in another cmd window
C:\> start cmd /k .\mybat.bat
the above command will start the mybat.bat file in a new window
7. naturally you can mix with other options, for example:
C:\> start "title" cmd /k .\mybat.bat
will start the mybat.bat file in a new window, and will assign “title” as the window title
8. Run a command on a specified processor/core
C:\> start "title" /affinity 0x01 cmd
will run the new cmd on proc 1 while
C:\> start "title" /affinity 0x02 cmd
will run the new cmd on proc 2 while
C:\> start "title" /affinity 0x03 cmd
will permit to run on both proc 1 and 2
Gg1