trying to rewrite the bat files in light of delayed expansion... not going well. what is happening? I hate windows cmd shell
This commit is contained in:
19
activate.bat
19
activate.bat
@@ -1,23 +1,14 @@
|
||||
FOR /r "C:\Program Files\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
||||
SET "_file=%%G"
|
||||
SET "_comp=%_file:\VC\=%"
|
||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
||||
)
|
||||
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||
|
||||
FOR /r "C:\Program Files\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
||||
SET "_file=%%G"
|
||||
SET "_comp=%_file:\VC\=%"
|
||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
||||
SET "_comp=!_file:\VC\=!"
|
||||
IF NOT "!_comp!" == "!_file!" "!_file!"
|
||||
)
|
||||
|
||||
FOR /r "C:\Program Files (x86)\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
||||
SET "_file=%%G"
|
||||
SET "_comp=%_file:\VC\=%"
|
||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
||||
SET "_comp=!_file:\VC\=!"
|
||||
IF NOT "!_comp!" == "!_file!" "!_file!"
|
||||
)
|
||||
|
||||
FOR /r "C:\Program Files (x86)\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
||||
SET "_file=%%G"
|
||||
SET "_comp=%_file:\VC\=%"
|
||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user