try this
Function GetCurrentSSID
@ 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
Function GetCurrentSSID
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