<http://www.netikka.net/tsneti/info/tscmd109.htm>
Copyright © 2003-2010 by Prof. Timo Salmi  
Last modified Sat 15-May-2010 17:27:04

 
Assorted NT/2000/XP/.. CMD.EXE Script Tricks
From the html version of the tscmd.zip 1cmdfaq.txt file
To the Description and the Index
 

This page is edited from the 1cmdfaq.txt faq-file contained in my tscmd.zip command line interface (CLI) collection. That zipped file has much additional material, including a number of detached .cmd script files. It is recommended that you also get the zipped version as a companion.

Please see "The Description and the Index page" for the conditions of usage and other such information.



109} How do I open e.g. three separate instances of notepad at one go?

> I have a file OPENTEXT.CMD that contains the following lines:
>   notepad textfile1.txt
>   notepad textfile2.txt
>   notepad textfile3.txt
> When I type OPENTEXT, I want all three of the text files to open in separate Notepad windows.

START starts a separate window to run a specified program or command.
  @echo off & setlocal enableextensions
  start "" notepad textfile1.txt
  start "" notepad textfile2.txt
  start "" notepad textfile3.txt
  endlocal & goto :EOF



start ["title"] ...
"title"
: Specifies the title to display in Command Prompt window title bar.
It always is advisable to include it, even if left empty (a common practice).

Also see items #36 and #174.