Home  >  Q&A  >  body text

c++ - 如何解决 'devenv' 不是内部或外部命令,也不是可运行的程序 或批处理文件?

每次都要在控制台进入VS的VC目录然后运行vcvarsall.bat才能使用devenv,怎么设置才能在任意地方都使用devenv命令呢?

PHP中文网PHP中文网2764 days ago3976

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 15:18:22

    Add the devenv directory path to the system environment variable path

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:18:22

    The easiest way is to generate a shortcut and put it on the launch bar or desktop. If the shortcut in the picture below is
    , just click the icon when using it.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:18:22

    I use Powershell + PSCX. PSCX has an ImportVisualStudioVars command. Add it to your personal ps configuration and open powershell to use it

    reply
    0
  • Cancelreply