1

"Commands that provide a lot of information should be run in a separate command shell with output piped through a pager (the “more” command), and with an appropriate title on the second command window. " This is what i am supposed to do.

K V
  • 13
  • 3

2 Answers2

1

how to pipe the output of a command (let's say ipconfig) in another cmd window?

It sounds like you want to execute a command from a command prompt window but have that open in a separate command window and also give a specific title to that new command prompt window (see below example).

EXAMPLE

SET Command=IPCONFIG
SET Title=This is what i am supposed to do

START "" "CMD /K TITLE "%Title%" & %Command%"
0

start cmd /k then the command

example: start cmd /k ipconfig /all

Mass Nerder
  • 1,027