Skip to main content
8 events
when toggle format what by license comment
Jan 29, 2022 at 19:35 audit Suggested edits
Jan 29, 2022 at 19:36
Jan 23, 2022 at 4:11 answer added mnauta timeline score: 0
Jan 21, 2022 at 15:20 comment added Señor CMasMas Thanks @iTwasnTme. I thought of that too. (great minds blah blah blah). I was trying to make it as simple as possible by slightly tweaking his/her code directly as it was. This line runs without error on my machine and I didn't need to escape the eq.
Jan 21, 2022 at 13:47 comment added mnauta I got it to work if wi-fi is enabled, however, if not enabled I get output "36 was expected at this time." @echo off for /f "tokens=2 delims=:" %%r in ('netsh wlan show interface name=Wi-Fi ^| findstr "Channel"') do Set Channel=%%r if %Channel% GEQ 36 if %Channel% LEQ 177 (echo Wi-Fi 5GHz) else (if %Channel% GEQ 1 if %Channel% LEQ 11 (echo Wi-Fi 2.4GHz) ) if "%Channel%"=="" (echo Wi-Fi not enabled) set "Channel="
Jan 20, 2022 at 23:10 comment added Señor CMasMas for /f "tokens=2 delims=:" %%r in ('netsh wlan show interface name=WiFi^|findstr "Channel"') do Set Channel=%%r This will leave a space before the %%r but you shouldn't need to trim it for your use. Add a echo "%Channel%" to see the results. I could write this whole batch file for you but I HIGHLY suggest that you take the tidbit I gave you and solve the rest. Use if /? to figure out the greater than and less than logic.
Jan 20, 2022 at 23:06 history edited mnauta CC BY-SA 4.0
added 28 characters in body
S Jan 20, 2022 at 22:25 review First questions
Jan 20, 2022 at 22:44
S Jan 20, 2022 at 22:25 history asked mnauta CC BY-SA 4.0