千家信息网

在Bat批处理中调用Powershell脚本

发表于:2024-10-25 作者:千家信息网编辑
千家信息网最后更新 2024年10月25日,##如何在BAT中调用powershell,把下面代码另存为bat格式pushd %~dp0powershell.exe -command ^ "& {set-executionpolicy Rem
千家信息网最后更新 2024年10月25日在Bat批处理中调用Powershell脚本
##如何在BAT中调用powershell,把下面代码另存为bat格式pushd %~dp0powershell.exe -command ^  "& {set-executionpolicy Remotesigned -Scope Process; .'.\ClearIISLogFiles.ps1' }"popdpause

可访问下面的链接,获取更多的IT资讯:

0