Opening a new command prompt window within a batch script

By xngo on July 13, 2019

@REM Open a new window & display "Hello, world".
START cmd /k "echo Hello, world"

@REM Open a new window & execute multiple line of commands".
START cmd /k "echo Hello, world && echo How are you?"

@REM Open a new window and customize the pre-defined command line.
START cmd /k "prompt --=[$D $T]=--$_$L$P$G"

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.