在Bat批处理中调用Powershell脚本

##如何在BAT中调用powershell,把下面代码另存为bat格式
pushd %~dp0
powershell.exe -command ^
  "& {set-executionpolicy Remotesigned -Scope Process; .'.\ClearIISLogFiles.ps1' }"
popd
pause

posted on 2019-07-16 10:41  东郭西强  阅读(8290)  评论(0编辑  收藏  举报

导航