在Bat批处理中调用Powershell脚本
时间:2018-01-12 11:15:13
收藏:0
阅读:758
##如何在BAT中调用powershell,把下面代码另存为bat格式
pushd %~dp0
powershell.exe -command ^
"& {set-executionpolicy Remotesigned -Scope Process; .‘.\ClearIISLogFiles.ps1‘ }"
popd
pause
可访问下面的链接,获取更多的IT资讯:
原文:http://blog.51cto.com/543925535/2060106
评论(0)