@echo off
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=E:\PROGRA~1\MICROS~1\COMMON
rem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=E:\PROGRA~1\MICROS~1\COMMON\msdev98
rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=E:\PROGRA~1\MICROS~1\VC98
rem
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=WINNT
rem
echo Setting environment for using Microsoft Visual C++ tools.
rem
if "%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=
rem 注意:set cl=一行只能写在一行里,否则,后面再写一行会覆盖上一行的设置!!
rem 而且要按照CL的格式,按顺序写:CL [option...] file... [option...] file...[lib...]
rem [@command-file] [/link link-opt...]