Skip to content

Instantly share code, notes, and snippets.

@kyoma-
Created March 24, 2019 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyoma-/f28b2a305f95405fb1c506e4d5dfc0b9 to your computer and use it in GitHub Desktop.
Save kyoma-/f28b2a305f95405fb1c506e4d5dfc0b9 to your computer and use it in GitHub Desktop.
prints WiFi profiles and deletes a profile
@echo off
rem References:
rem https://qiita.com/sta/items/8cab80fe74b8dcfa5336
rem https://mseeeen.msen.jp/fix-priorities-for-wifi-spot-in-windows-10/
setlocal
pushd "%~dp0"
netsh wlan show profiles
set /p p2d="Enter profile name to delete:"
if "%p2d%"=="" (
exit /b
)
netsh wlan delete profile name="%p2d%"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment