1. 程式人生 > >在Bat批處理中調用Powershell腳本

在Bat批處理中調用Powershell腳本

pushd fff 格式 ## popd it資訊 man ext command

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

可訪問下面的鏈接,獲取更多的IT資訊:
技術分享圖片

在Bat批處理中調用Powershell腳本