PowerShell执行当前目录下的脚本(无需启用允许脚本运行权限)

 

::PowerShell执行当前目录下的脚本(无需启用允许脚本运行权限)
powershell.exe -executionpolicy bypass -noprofile -noninteractive -file "%~dp0\Xcopy.ps1"

 

PowerShell执行当前目录下的脚本

posted on 2021-03-25 17:39  momingliu11  阅读(196)  评论(0编辑  收藏  举报