Opening a new CMD window in a script package

I swear that this assignment will be the end of me, I researched this new problem for most of the day and was pretty stuck. The problem is this: we were instructed to find a command that would open a new cmd window and change the color (both front and back) and a tooltip. However, the lecturer pointed to the use of the cmd command: I cannot find the switches (if this is the correct term) or the parameters to use. I found this -

START COLOR A4 

did the right thing, however this uses the wrong command and when trying to add a second parameter:

 START COLOR A4 PROMPT $V 

This did not work. In part, this may be due to a lack of knowledge about the use of delimiters and how to send several parameters to the command.

Thanks in advance for your help. JohnW.

+4
source share
1 answer

A few tips should sort you out:

 START COLOR A4 

is short for

 START cmd /k "COLOR A4" 

See the syntax for cmd and pay special attention to the "Remarks" section - it tells you how to issue several commands.

+7
source

Source: https://habr.com/ru/post/1403007/


All Articles