Using CMD as a Process

后端 未结 6 1662
無奈伤痛
無奈伤痛 2020-12-22 09:38

I\'m trying to run commands straight through the CMD on Windows (Terminal on Linux). I have the following code. It\'s acting very strangely. First, when run the program does

6条回答
  •  清歌不尽
    2020-12-22 10:17

    cmd tries to run a command prompt ,

    to run the command properly you need the following command line

    cmd.exe -c ipconfig.exe

    the -c means run the command on the rest of the command line

提交回复
热议问题