I want a batch file to open CMD and run "net stop audiosrv", then "net start audiosrv", then kill CMD. I am having problems with a bunch of things including
- It's not waiting
- It is opening a new CMD
- It's not closing
Here is the code I wrote myself. I've never done any coding before and got this from what I did now/combining it with other things I've seen on here.
start cmd.exe /k "net stop audiosrv"
wait 10
start cmd.exe /k "net start audiosrv"
TASKKILL /IM cmd.exe
I don't really think it matters but I'm running Windows 7 Ultimate Service Pack 1 - 64 bit
`net stop audiosrv
wait 10
net start audiosrv `
– ShadyShroomz Sep 12 '14 at 13:59