diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-16 18:55:20 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-16 18:55:20 (GMT) |
commit | d71afb2d105a083babb54511f1e85b6aea6d3c38 (patch) | |
tree | 2c77406d6cc22262230cb0435c9601478cf375b4 /Lib/test | |
parent | f8cf13eeb73f63cdd49df4d146d72005164aca4c (diff) | |
download | cpython-d71afb2d105a083babb54511f1e85b6aea6d3c38.zip cpython-d71afb2d105a083babb54511f1e85b6aea6d3c38.tar.gz cpython-d71afb2d105a083babb54511f1e85b6aea6d3c38.tar.bz2 |
Set eol-style to native.
Diffstat (limited to 'Lib/test')
-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 + |