The following lists available Wi-Fi networks:
C:\WINDOWS\explorer.exe ms-availablenetworks:
but I need the information in a text file or variable to make a Windows
batch to determine the strongest available signal and then login to it.
Suggestions please.
Zaidy036 wrote:
The following lists available Wi-Fi networks:
C:\WINDOWS\explorer.exe ms-availablenetworks:
but I need the information in a text file or variable to make a
Windows batch to determine the strongest available signal and then
login to it.
Suggestions please.
netsh.exe wlan show networks
Zaidy036 wrote:
I had tried NETSH WLAN SHOW NETWORKS and some times it shows all and
other times ONLY the one connected to (visible).
I hadn't noticed that, but you're right.
I do not see an option to ALWAYS show all.
it seems if I run the ms-availablenetworks first, then run the netsh,
you then get all visible, not just the one connected?
Gives SSID so batch should be able to find speed to compare when it
reliably shows all.
I had tried NETSH WLAN SHOW NETWORKS and some times it shows all and
other times ONLY the one connected to (visible).
I do not see an option to ALWAYS show all.
Gives SSID so batch should be able to find speed to compare when it
reliably shows all.
The following lists available Wi-Fi networks:
C:\WINDOWS\explorer.exe ms-availablenetworks:
but I need the information in a text file or variable to make a Windows
batch to determine the strongest available signal and then login to it.
Suggestions please.
The following lists available Wi-Fi networks:
C:\WINDOWS\explorer.exe ms-availablenetworks:
but I need the information in a text file or variable to make a Windows
batch to determine the strongest available signal and then login to it.
Suggestions please.
TIMEOUT /T 5 > NULF:\_NetworkL%%N.txt)
The following lists available Wi-Fi networks:Out of interest I made the following batch to output lists of SSIDs from
C:\WINDOWS\explorer.exe ms-availablenetworks:
but I need the information in a text file or variable to make a Windows
batch to determine the strongest available signal and then login to it.
Suggestions please.
On 12/18/2023 12:24 PM, Zaidy036 wrote:
The following lists available Wi-Fi networks:Out of interest I made the following batch to output lists of SSIDs from
C:\WINDOWS\explorer.exe ms-availablenetworks:
but I need the information in a text file or variable to make a
Windows batch to determine the strongest available signal and then
login to it.
Suggestions please.
the NETSH output:
NOTES:
first FOR /L cmd is number of lists to make.
second FOR /L cmd is SSIDs to list, may line wrap.
TIMEOUT is optional and number of seconds between lists
FOR /L %%N IN (1,1,3) DO (
DEL F:\_Network?.txt > NUL 2>&1
C:\WINDOWS\explorer.exe ms-availablenetworks:
NETSH.EXE WLAN SHOW NETWORKS >> F:\_NetworkS.txt
FOR /L %%S IN (1,1,15) DO (FINDSTR /C:"SSID %%S " F:\_NetworkS.txt >> F:\_NetworkL%%N.txt)
TIMEOUT /T 5 > NUL
)
Comparing F:\_NetworkL%%N.txt lists you will see that the order of SSIDs produced appears to be by signal strength and could be used to change
Wi-Fi network connection.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:24:02 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,266 |