BAT Script to Enable/Disable Soundcard

Soldato
Joined
12 Dec 2003
Posts
2,588
I have a soundcard that occasionally stops working until you disable then re-enable it in Playback Devices (W7 x64). Is it possible to write a batch script to do this?

Thanks
 
You will need a command line tool called DevCon.exe - it is available in one of the Windows Driver Toolkits. Just do a search for "Devcon Windows 7".

You can then write a script that calls that tool.
 
Does anyone have a direct link to a download copy of just
the devcon.exe , that works with windows 7 ?

Thanks in advance if you can help me
 
I will do it later when I am at my main computer. I fancy a play with it too - my USB headset sometimes needs to be disabled/enabled after my PC wakes up from sleep. I can't yank the USB lead either as it is tucked away.
 
Thanks SiriusB

Ironically enough I to have a usb headset that I want to use devcon to enable/disable etc

I got the i386 version of devcon but cant get it to work right (might just be me mind you)
 
You will probably need the 64bit version lurkio.

Not had a chance to play just yet - I got distracted by more important things [beer and free food! :p]
 
Back
Top Bottom