Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get SSID
#4
try this 

Function GetCurrentSSID
Code:
Copy      Help
str s ss
if(RunConsole2("NETSH WLAN SHOW INTERFACE" s)) end "failed"
if(findrx(s "   SSID .+"  0 1 ss)>0)
,ss.trim
,out ss 
else
,out s

@ Gintaras 
the actual command line is
NETSH WLAN SHOW INTERFACE | findstr /r "^....SSID"
Is there a way to do this in  RunConsole2  other than what i have done?
I couldn't get it to work directly with the full command in RunConsole2
it just ignored the findstr argument and just gave the results as if i sent NETSH WLAN SHOW INTERFACE


Messages In This Thread
Get SSID - by _pi - 07-30-2018, 05:32 PM
RE: Get SSID - by TheDane - 08-01-2018, 01:54 PM
RE: Get SSID - by _pi - 08-05-2018, 04:30 PM
RE: Get SSID - by Kevin - 08-05-2018, 09:07 PM
RE: Get SSID - by Kevin - 08-06-2018, 04:00 AM
RE: Get SSID - by _pi - 08-06-2018, 01:09 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)