Fix issues with spaces in path
This commit is contained in:
		
							parent
							
								
									0a91cb2639
								
							
						
					
					
						commit
						80b52c5cfe
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		|  | @ -1,5 +1,7 @@ | |||
| @echo off | ||||
| 
 | ||||
| set mypath=%~dp0 | ||||
| 
 | ||||
| :: Check admin rights | ||||
| 
 | ||||
| NET SESSION >nul 2>&1 | ||||
|  | @ -52,10 +54,10 @@ goto main | |||
| 
 | ||||
| :: Import Sincoolka and Sincoolka 5G Wi-Fi profile | ||||
| 
 | ||||
| :setup_wifi    | ||||
| cls                     | ||||
| netsh wlan add profile filename="%0\..\Wi-Fi-Sincoolka.xml" | ||||
| netsh wlan add profile filename="%0\..\Wi-Fi-Sincoolka 5G.xml" | ||||
| :setup_wifi | ||||
| cls | ||||
| netsh wlan add profile "filename=%mypath%Wi-Fi-Sincoolka.xml" | ||||
| netsh wlan add profile "filename=%mypath%Wi-Fi-Sincoolka 5G.xml" | ||||
| 
 | ||||
| echo. | ||||
| 
 | ||||
|  | @ -115,7 +117,7 @@ if "%iface%" == "" ( | |||
|   goto endEth | ||||
| ) | ||||
| 
 | ||||
| netsh lan add profile filename=\"%0\..\Ethernet.xml\" interface="%iface%" | ||||
| netsh lan add profile "filename=%mypath%Ethernet.xml" interface="%iface%" | ||||
| 
 | ||||
| if %errorlevel% GTR 0 ( | ||||
|   set iface= | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue