diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-16 18:56:35 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-16 18:56:35 (GMT) |
commit | d1442b4d0edb38945f82da46711abefc3cb7df40 (patch) | |
tree | 6f062c366cdf42da2a5fe37278fd684f398a406b | |
parent | d82f39197405e63174bfa3f14c44fc504021877a (diff) | |
download | cpython-d1442b4d0edb38945f82da46711abefc3cb7df40.zip cpython-d1442b4d0edb38945f82da46711abefc3cb7df40.tar.gz cpython-d1442b4d0edb38945f82da46711abefc3cb7df40.tar.bz2 |
Merge rev 43081 from trunk.
Set eol-style to native.
-rw-r--r-- | Lib/test/check_soundcard.vbs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/test/check_soundcard.vbs b/Lib/test/check_soundcard.vbs index 170d380..8c21852 100644 --- a/Lib/test/check_soundcard.vbs +++ b/Lib/test/check_soundcard.vbs @@ -1,13 +1,13 @@ -rem Check for a working sound-card - exit with 0 if OK, 1 otherwise.
-set wmi = GetObject("winmgmts:")
-set scs = wmi.InstancesOf("win32_sounddevice")
-for each sc in scs
- set status = sc.Properties_("Status")
- wscript.Echo(sc.Properties_("Name") + "/" + status)
- if status = "OK" then
- wscript.Quit 0 rem normal exit
- end if
-next
-rem No sound card found - exit with status code of 1
-wscript.Quit 1
-
+rem Check for a working sound-card - exit with 0 if OK, 1 otherwise. +set wmi = GetObject("winmgmts:") +set scs = wmi.InstancesOf("win32_sounddevice") +for each sc in scs + set status = sc.Properties_("Status") + wscript.Echo(sc.Properties_("Name") + "/" + status) + if status = "OK" then + wscript.Quit 0 rem normal exit + end if +next +rem No sound card found - exit with status code of 1 +wscript.Quit 1 + |