prosseek
prosseek

Reputation: 191129

Powershell doesn't have the correct path info after the vsvars32.bat command

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

Upvotes: 5

Views: 1963

Answers (2)

Roman Kuzmin
Roman Kuzmin

Reputation: 42073

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

Upvotes: 7

jlew
jlew

Reputation: 10601

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?

Upvotes: 5

Related Questions