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 | @echo off | ||||||
| 
 | 
 | ||||||
|  | set mypath=%~dp0 | ||||||
|  | 
 | ||||||
| :: Check admin rights | :: Check admin rights | ||||||
| 
 | 
 | ||||||
| NET SESSION >nul 2>&1 | NET SESSION >nul 2>&1 | ||||||
|  | @ -52,10 +54,10 @@ goto main | ||||||
| 
 | 
 | ||||||
| :: Import Sincoolka and Sincoolka 5G Wi-Fi profile | :: Import Sincoolka and Sincoolka 5G Wi-Fi profile | ||||||
| 
 | 
 | ||||||
| :setup_wifi    | :setup_wifi | ||||||
| cls                     | cls | ||||||
| netsh wlan add profile filename="%0\..\Wi-Fi-Sincoolka.xml" | netsh wlan add profile "filename=%mypath%Wi-Fi-Sincoolka.xml" | ||||||
| netsh wlan add profile filename="%0\..\Wi-Fi-Sincoolka 5G.xml" | netsh wlan add profile "filename=%mypath%Wi-Fi-Sincoolka 5G.xml" | ||||||
| 
 | 
 | ||||||
| echo. | echo. | ||||||
| 
 | 
 | ||||||
|  | @ -115,7 +117,7 @@ if "%iface%" == "" ( | ||||||
|   goto endEth |   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 ( | if %errorlevel% GTR 0 ( | ||||||
|   set iface= |   set iface= | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue