batch file for setting env variables
-
Hello, I'm working at a machine where where the VC++ batch file for setting the PATH environment variables isn't available and I don't have access to the CD today. Can anybody remind me exactly what variables are set? Cheers, John p.s. or even just paste the script would be brilliant!
-
Hello, I'm working at a machine where where the VC++ batch file for setting the PATH environment variables isn't available and I don't have access to the CD today. Can anybody remind me exactly what variables are set? Cheers, John p.s. or even just paste the script would be brilliant!
The file vcvars32.bat, located in the C:\Program Files\Microsoft Visual Studio\VC98\Bin folder, looks like:
@echo off
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=C:\Program Files\MICROS~3\Commonrem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=C:\Program Files\MICROS~3\Common\msdev98rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=C:\Program Files\MICROS~3\VC98rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNTrem
echo Setting environment for using Microsoft Visual C++ tools.
remif "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%VSCommonDir%\TOOLS\%VcOsDir%;%VSCommonDir%\TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSVCDir%\BIN";"%VSCommonDir%\TOOLS\%VcOsDir%";"%VSCommonDir%\TOOLS";"%windir%\SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%\ATL\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%INCLUDE%
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%set VcOsDir=
set VSCommonDir=
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
The file vcvars32.bat, located in the C:\Program Files\Microsoft Visual Studio\VC98\Bin folder, looks like:
@echo off
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=C:\Program Files\MICROS~3\Commonrem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=C:\Program Files\MICROS~3\Common\msdev98rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=C:\Program Files\MICROS~3\VC98rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNTrem
echo Setting environment for using Microsoft Visual C++ tools.
remif "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%VSCommonDir%\TOOLS\%VcOsDir%;%VSCommonDir%\TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSVCDir%\BIN";"%VSCommonDir%\TOOLS\%VcOsDir%";"%VSCommonDir%\TOOLS";"%windir%\SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%\ATL\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%INCLUDE%
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%set VcOsDir=
set VSCommonDir=
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Thanks very much David, John