Advertisement
yurri

Untitled

Sep 2nd, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Question
  2. Vote as helpful
  3. 9
  4. Vote
  5. Thanks for your tip.
  6.  
  7. To loop through all profiles just use the forfile command:
  8.  
  9. FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path
  10.  
  11.  
  12. or make a batch to give a Y/N option :)
  13.  
  14.  
  15. @echo off
  16.  
  17. ECHO We are going to import all the profiles in this folder!
  18. SET /P ANSWER=Do you want to continue (Y/N)?
  19.  
  20. if /i {%ANSWER%}=={y} (goto :yes)
  21. if /i {%ANSWER%}=={yes} (goto :yes)
  22. goto :no
  23. :yes
  24. FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path
  25. Pause
  26. exit /b 0
  27.  
  28. :no
  29. echo Bye!
  30. Pause
  31. exit /b 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement