• Available Networks

    From Zaidy036@21:1/5 to All on Mon Dec 18 12:24:54 2023
    XPost: alt.msdos.batch.nt

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to All on Mon Dec 18 17:33:44 2023
    XPost: alt.msdos.batch.nt

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to Andy Burns on Mon Dec 18 13:33:29 2023
    XPost: alt.msdos.batch.nt

    On 12/18/2023 12:33 PM, Andy Burns wrote:
    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


    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to Andy Burns on Mon Dec 18 14:00:47 2023
    XPost: alt.msdos.batch.nt

    On 12/18/2023 1:39 PM, Andy Burns wrote:
    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.


    Interesting. Will test.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to All on Mon Dec 18 18:39:46 2023
    XPost: alt.msdos.batch.nt

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From VanguardLH@21:1/5 to Zaidy036@air.isp.spam on Mon Dec 18 13:35:29 2023
    XPost: alt.msdos.batch.nt

    Zaidy036 <Zaidy036@air.isp.spam> 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.

    While other tools might show the same info, my first thought is
    PowerShell could probably show all info on all adapters.

    https://learn.microsoft.com/en-us/powershell/module/netadapter/get-netadapter?view=windowsserver2022-ps

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to All on Mon Dec 18 21:32:13 2023
    XPost: alt.msdos.batch.nt

    On 12/18/2023 12:24 PM, 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.

    Out of interest I made the following batch to output lists of SSIDs from
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to All on Mon Dec 18 21:35:13 2023
    XPost: alt.msdos.batch.nt

    On 12/18/2023 12:24 PM, 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.
    Out of interest I made the following batch to output lists of SSIDs from
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to All on Fri Dec 22 11:50:12 2023
    XPost: alt.msdos.batch.nt

    On 12/18/2023 9:35 PM, Zaidy036 wrote:
    On 12/18/2023 12:24 PM, 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.
    Out of interest I made the following batch to output lists of SSIDs from
    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.

    I have searched but cannot confirm what criteria is used to set the
    order of SSIDs produced by either:
    A: C:\WINDOWS\explorer.exe ms-availablenetworks:
    B. NETSH WLAN SHOW NETWORKS
    and the lists are in different order.

    A. First is the connected network followed by signal strength?
    B. No obvious list order

    Anybody know?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)