##如何在BAT中调用powershell,把下面代码另存为bat格式
pushd %~dp0
powershell.exe -command ^
"& {set-executionpolicy Remotesigned -Scope Process; .'.ClearIISLogFiles.ps1' }"
popd
pause
转载于:https://blog.51cto.com/fandecorator/2086719
最后
以上就是俏皮冰棍最近收集整理的关于在Bat批处理中调用Powershell脚本的全部内容,更多相关在Bat批处理中调用Powershell脚本内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复