我知道如何使用Shell "cmd.exe /k <command>
命令在vb.net中运行cmd,但是如何使用它执行多行操作,或者使用其他内容?
CMD commands are separated by the ampersand. For instance:
cmd.exe /k <command 1> & <command 2> & <command 3>
An example .NET solution would be:
Process.Start("cmd.exe", "/k <command 1> & <command 2> & <command 3>")
For more see Microsoft's Command Shell documentation .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.