When I run e.g. ipconfig
using the Run command (windows key+R), once the program has executed it immediately closes the instance of the command line interface, is there any universal parameter I can add to:
ipconfig
nslookup
dir
to ensure that the results stay printed in the console window?
Use cmd
with the /k
switch:
cmd /k ipconfig
There is also the ability to concatenate commands
& is used to just post multible commands in a line && will break if the last command wasn't successful
cmd /k ipconfig & pause & exit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With