使用批处理文件运行多个Windows命令

时间:2017-06-27 08:38:12

标签: windows batch-file command-line cmd command

我接下来不知道代码,所以请原谅我的无知。我正在尝试运行

netsh winsock reset

netsh int ipv4 reset

单个命令行上的

。我试过用&和&&但只执行第一个命令。

以下是我从其他答案中获得的内容:

cmd /K netsh winsock reset & netsh int ipv4 reset

如何让它运行第二个命令?

1 个答案:

答案 0 :(得分:1)

使用struct mything1 { int foo; int has_foo; int bar; int has_bar };
您可以参考here for more info this answer on StackOverflow也可能有用