Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Question
- Vote as helpful
- 9
- Vote
- Thanks for your tip.
- To loop through all profiles just use the forfile command:
- FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path
- or make a batch to give a Y/N option :)
- @echo off
- ECHO We are going to import all the profiles in this folder!
- SET /P ANSWER=Do you want to continue (Y/N)?
- if /i {%ANSWER%}=={y} (goto :yes)
- if /i {%ANSWER%}=={yes} (goto :yes)
- goto :no
- :yes
- FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path
- Pause
- exit /b 0
- :no
- echo Bye!
- Pause
- exit /b 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement