"skillzero" <> wrote in message
news:139ab6de-5ca7-4060-b43e-...
> On Apr 23, 11:24 am, "Pavel A." <pave...@NOfastmailNO.fm> wrote:
>
>> WMI can give the RSSI and some other parameters.
>> To set profiles... only Visual basic is your friend
>> from the above list - or even better, Visual C.
>> Of course, unless you have Centrino: PROSet has some WMI
>> scriptable interface, if memory serves.
>
> Thanks, it sounds like using the Wlan APIs from Visual C is the best
> option? If so, I can write a command line tool in C so normal .bat
> scripts can invoke it.
>
> BTW...If I wanted to use WMI, can you give an example of how I might
> get the RSSI? I've heard of WMI, but never used it so I'm not even
> sure how I would invoke it.
The following vbscript demonstrates use of
MSNdis_80211_ReceivedSignalStrength
WMI class. It should work on WinXP.
======
Set wmi = GetObject("winmgmts:{impersonationLevel=impersonat e}!root/wmi")
On Error Resume Next
Set AdapterSet = wmi.ExecQuery("select * from
MSNdis_80211_ReceivedSignalStrength")
If Err.Number <> 0 Then
Wscript.Echo "Error from WMI:" & Err.Number
Wscript.Quit 2
End If
For each wa in AdapterSet
WScript.Echo "Adapter name=", wa.InstanceName
WScript.Echo "RSSI=", wa.Ndis80211ReceivedSignalStrength
Next
=========
Regards,
-- pa
|