Miki S
Miki S

Reputation: 13

Running multiple windows commands using batch file

I have next to no knowledge of code so forgive my ignorance. I'm trying to run

netsh winsock reset

and

netsh int ipv4 reset

on a single command line. I tried using & and && but only the first command is executed.

Here's what I got from the other answers on here:

cmd /K netsh winsock reset & netsh int ipv4 reset

How can I get it to run the second command?

Upvotes: 1

Views: 411

Answers (1)

cse
cse

Reputation: 4104

Use cmd /K "netsh winsock reset & netsh int ipv4 reset"
You can refer here for more info.
Also this answer on StackOverflow may be useful

Upvotes: 1

Related Questions