How can I source variables from a .bat file into a PowerShell script?

后端 未结 5 1452
春和景丽
春和景丽 2020-12-10 02:25

I\'m replacing parts of a .bat script with PowerShell. Configuration for the batch files is done via files that set appropriate environment variables. I\'m look

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 03:09

    You can do that via a Batch file that first call the configuration file and then execute the PowerShell script.

提交回复
热议问题