5

With command prompt, I run vsvars32 to run all the visual studio command line utilities (compiler, linker ...).

enter image description here

However, when I run the same thing with PowerShell, I can't run the utilities. What might be wrong?

enter image description here

prosseek
  • 182,215
  • 215
  • 566
  • 871
  • 1
    possible duplicate of [Use PowerShell for Visual Studio Command Prompt](http://stackoverflow.com/questions/4398136/use-powershell-for-visual-studio-command-prompt) – zdan May 27 '11 at 00:29

2 Answers2

7

The answer is in here: Use PowerShell for Visual Studio Command Prompt

Community
  • 1
  • 1
Roman Kuzmin
  • 40,627
  • 11
  • 95
  • 117
5

Running a batch file causes it to spawn its own process, which doesn't affect the powershell environment. For a workaround, see: How to call batch script from Powershell?

Community
  • 1
  • 1
jlew
  • 10,491
  • 1
  • 35
  • 58