当前位置

网站首页> 程序设计 > 开源项目 > 程序开发 > 浏览文章

〔备忘〕用 setenv.cmd 配置常用环境 - 边城客栈

作者:小梦 来源: 网络 时间: 2024-03-08 阅读:
@echo offREM "for set specical environment"if [%1]==[] (    echo need a parameter    goto:eof)goto :%1goto:eof:editREM "edit current batch script""C:\Program Files\Sublime Text 3\sublime_text.exe" "c:\local\bin\setenv.cmd"goto:eof:addPathREM "add the first parameter to PATH environment variable"REM "if it's not in PATH"setlocalset _found=for %%i in ("%PATH:;=";"%") do (    if /i "%1"=="%%~i" set _found=true)if not "%_found%"=="true" (    endlocal    set "PATH=%1;%PATH%") else (    endlocal)goto:eof:doskeyREM "edit doskey configuration file""C:\Program Files\Sublime Text 3\sublime_text.exe" "c:\local\bin\_doskey"goto:eof:nginxREM "goto nginx directory"cd c:\local\nginxgoto:eof:vs:vs2015"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"goto:eof:msbuild"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsMSBuildCmd.bat"goto:eof:antcall:addPath C:\Local\Apache\ant\bingoto:eof:androidcall:addPath C:\Local\Android\sdk\toolscall:addPath C:\Local\Android\sdk\platform-toolscall:antgoto:eof

热点阅读

网友最爱