0
我有一个bat.file,我打电话给我的ps1脚本。 我就会犯路径PS1脚本如何从批处理提交路径变量到ps1
蝙蝠:
...
set path="\\wka-wn-stda3\xKarten\A\"
PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1'"
PS1:
$path="\\wka-wn-stda3\xKarten\A\"
...
我会从批处理文件中PS1-里面的路径文件。我怎么能意识到这一点? 希望有人能帮助我!