1 rem Check for a working sound-card - exit with 0 if OK, 1 otherwise.
2 set wmi
= GetObject("winmgmts:")
3 set scs
= wmi
.InstancesOf("win32_sounddevice")
5 set status
= sc
.Properties_("Status")
6 wscript
.Echo(sc
.Properties_("Name") + "/" + status
)
8 wscript
.Quit
0 rem normal exit
11 rem No sound card found - exit with status code of 1