Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d71afb2d
Kaydet (Commit)
d71afb2d
authored
Mar 16, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Set eol-style to native.
üst
f8cf13ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
check_soundcard.vbs
Lib/test/check_soundcard.vbs
+13
-13
No files found.
Lib/test/check_soundcard.vbs
Dosyayı görüntüle @
d71afb2d
rem Check for a working sound-card - exit with 0 if OK, 1 otherwise.
rem Check for a working sound-card - exit with 0 if OK, 1 otherwise.
set
wmi
=
GetObject
(
"winmgmts:"
)
set
wmi
=
GetObject
(
"winmgmts:"
)
set
scs
=
wmi
.
InstancesOf
(
"win32_sounddevice"
)
set
scs
=
wmi
.
InstancesOf
(
"win32_sounddevice"
)
for
each
sc
in
scs
for
each
sc
in
scs
set
status
=
sc
.
Properties_
(
"Status"
)
set
status
=
sc
.
Properties_
(
"Status"
)
wscript
.
Echo
(
sc
.
Properties_
(
"Name"
)
+
"/"
+
status
)
wscript
.
Echo
(
sc
.
Properties_
(
"Name"
)
+
"/"
+
status
)
if
status
=
"OK"
then
if
status
=
"OK"
then
wscript
.
Quit
0
rem normal exit
wscript
.
Quit
0
rem normal exit
end
if
end
if
next
next
rem No sound card found - exit with status code of 1
rem No sound card found - exit with status code of 1
wscript
.
Quit
1
wscript
.
Quit
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment