话说,怎样才能直接运行ps1脚本?
powershell吧
全部回复
仅看楼主
level 13
k_logic 楼主
rt
2012年10月20日 02点10分 1
level 7
在cmd里运行下面2个命令就可以通过双击直接运行了。
ftype Microsoft.PowerShellScript.1="%SystemRoot%\system32\windowspowershell\v1.0\powershell.exe" ".\"%1""
%SystemRoot%\system32\windowspowershell\v1.0\powershell.exe set-executionpolicy remotesigned
2012年10月24日 00点10分 2
谢谢
2012年10月25日 04点10分
level 1
直接运行?你的.ps1 运行不了么?
set-executionpolicy unrestricted 先运行这个就好了
2012年11月08日 04点11分 3
1