VS2008 Command Prompt + Cygwin

前端 未结 3 822
一生所求
一生所求 2020-12-16 16:50

I use the VS2008 command prompt for builds, TFS access etc. and the cygwin prompt for grep, vi and unix-like tools. Is there any way I can \'import\' the vcvars32.bat functi

3条回答
  •  盖世英雄少女心
    2020-12-16 17:09

    Here is my sample Cygwin.bat file that configures Visual studio and starts mintty

    @echo off
    @REM Select the latest VS Tools
    IF  EXIST %VS100COMNTOOLS% (
        CALL "%VS100COMNTOOLS%\vsvars32.bat"
        GOTO :start_term
    )
    
    IF  EXIST %VS90COMNTOOLS% (
        CALL "%VS90COMNTOOLS%\vsvars32.bat"
        GOTO :start_term
    )
    
    IF  EXIST %VS80COMNTOOLS% (
        CALL "%VS80COMNTOOLS%\vsvars32.bat"
        GOTO :start_term
    )
    
    :start_term
    
    C:
    chdir C:\cygwin\bin
    START mintty.exe -i /Cygwin-Terminal.ico -
    

提交回复
热议问题