批处理文件的作用,setHOME

setlocal
REM Visual Studio 2010
set MSVC_HOME=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
REM Platform SDK for Windows Server 2003 R2
set mssdk=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
REM Windows SDK for Windows Vista (RC.exeのみ使用する)
set winsdk=C:\Program Files\Microsoft SDKs\Windows\v6.0

set PROGRAM_OUTPUT=isstudio.exe

call "%MSVC_HOME%\bin\vcvars32.bat"
@echo on

cd library
cd win32
cmd /c build.bat -output %PROGRAM_OUTPUT%
xcopy isstudio*.exe ....\bin\win32\win32\x86 /y
xcopy isstudio.env ....\bin\win32\win32\x86 /y
rem xcopy eclipse*.dll ......\org.eclipse.equinox.launcher.win32.win32.x86 /y
nmake -f make_win32.mak PROGRAM_OUTPUT=%PROGRAM_OUTPUT% clean
pause
cmd /c build.bat x86_64 -output %PROGRAM_OUTPUT%
xcopy isstudio*.exe ....\bin\win32\win32\x86_64 /y
rem xcopy eclipse*.dll ......\org.eclipse.equinox.launcher.win32.win32.x86_64 /y
nmake -f make_win64.mak PROGRAM_OUTPUT=%PROGRAM_OUTPUT% clean
pause
cmd /c build.bat ia64 -output %PROGRAM_OUTPUT%
xcopy isstudio*.exe ....\bin\win32\win32\ia64 /y
rem xcopy eclipse*.dll ......\org.eclipse.equinox.launcher.win32.win32.ia64 /y
nmake -f make_win64_ia64.mak PROGRAM_OUTPUT=%PROGRAM_OUTPUT% clean
pause
endlocal

2个回答

这个真是玩透了,不过都绝对路径不如用相对路径啊

长文件名要带上引号吧。不然会判断错误

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问