Powershell does not have correct path information after vsvars32.bat command

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

enter image description here

However, when I run the same with PowerShell, I cannot run utilities. What could be wrong?

enter image description here

+4
source share
2 answers

Running a batch file forces it to create its own process, which does not affect the powershell environment. For a workaround, see How to invoke a batch script package from Powershell?

+5
source

All Articles