mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-31 03:58:38 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			654 B
		
	
	
	
		
			Batchfile
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			654 B
		
	
	
	
		
			Batchfile
		
	
	
		
			Executable File
		
	
	
	
	
| @echo off
 | |
| 
 | |
| set vcvarsall=""
 | |
| 
 | |
| set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
 | |
| if exist %vswhere% (
 | |
|     for /f "usebackq tokens=*" %%i in (`%vswhere% -version [15.0^,17.0^) -find VC\**\vcvarsall.bat`) do (
 | |
|         set vcvarsall="%%i"
 | |
|     )
 | |
| )
 | |
| 
 | |
| if not exist %vcvarsall% (
 | |
|     if exist %vswhere% (
 | |
|         for /f "usebackq tokens=*" %%i in (`%vswhere% -version [15.0^,17.0^) -property installationPath`) do (
 | |
|             set vcvarsall="%%i\VC\Auxiliary\Build\vcvarsall.bat"
 | |
|         )
 | |
|     )
 | |
| )
 | |
| 
 | |
| if not exist %vcvarsall% (
 | |
|     set vcvarsall="%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"
 | |
| )
 | |
| 
 | |
| call %vcvarsall% %*
 |