Thanks Bruce, but this doesn't seem to be related to sound cards and their specific properties.
BTW, you may be interested to know that in the public beta, the async issue of WMI which you were having seems to have been solved (although I don't recall seeing it mentioned in the read me, s I thought I'd mention it ). Chip > -----Original Message----- > From: BX [mailto:[email protected]] > Sent: Wednesday, October 31, 2012 9:45 PM > To: [email protected] > Subject: Re: ap for changing soundcards > > Hi Dave and Chip, > > This is the standard format for a WMI inside a VBScript. If you have Power > Shell then the format goes down to a single line command. > Do more search on this to get more properties detail on it. > Bruce > > On Error Resume Next > strComputer = "." > Set objWMIService = GetObject("winmgmts:" _ > & "{impersonationLevel=impersonate}!\\" & strComputer & > "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from > Win32_SoundDevice") For Each objItem in colItems > Wscript.Echo "Description: " & objItem.Description > Wscript.Echo "Device ID: " & objItem.DeviceID > Wscript.Echo "DMA Buffer Size: " & objItem.DMABufferSize > Wscript.Echo "Manufacturer: " & objItem.Manufacturer > Wscript.Echo "MPU 401 Address: " & objItem.MPU401Address > Wscript.Echo "Name: " & objItem.Name > Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID > Wscript.Echo "Product Name: " & objItem.ProductName > Wscript.Echo "Status Information: " & objItem.StatusInfo Next > ----- Original Message ----- > From: "Chip Orange" <[email protected]> > To: <[email protected]> > Sent: Wednesday, October 31, 2012 4:02 PM > Subject: RE: ap for changing soundcards > > > Hi Dave, > > I looked at this, or something like it, in the past and decided I couldn't do it. > It might be possible to use WMI to do this, but I didn't know WMI well > enough. > > If you aren't using VBScript, but you're using some language with access to > all the Windows APIs, then you've probably got all you need to do it at that > point, and you can forget WMI; but WMI was the only way I saw for VBScript > to do it. > > Hth, > > Chip > > > > -----Original Message----- > > From: Dave Bahr [mailto:[email protected]] > > Sent: Wednesday, October 31, 2012 4:02 AM > > To: gw-scripting > > Subject: ap for changing soundcards > > > > Hi gang, > > > > I was wondering something, and if I've asked this before I'm sorry. > > Would it be possible for someone to make an ap to switch between sound > > cards in the windows control pannel? To make each the default card and > > then have we announce what card it is? I have multiple audio devices, > > so I figured some sort of rotor would be nice. Any thoughts on this one? > > > > -- > > Dave C. Bahr > > Facebook: Dave Bahr > > Twitter: dcbahr
