在Bat批處理中調用Powershell腳本

##如何在BAT中調用powershell,把下面代碼另存爲bat格式
pushd %~dp0
powershell.exe -command ^
"& {set-executionpolicy Remotesigned -Scope Process; .'.\ClearIISLogFiles.ps1' }"
popd
pause
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章