【批处理】通过bat运行powershell脚本
通过bat运行powershell脚本
@echo off pushd "%~dp0%" for /f "delims=:" %%i in ('findstr /n "^:ps1$" "%~f0"') do ( more +%%i "%~f0" > "%temp%\test.ps1" ) powershell -executionpolicy remotesigned -file "%temp%\test.ps1" goto :eof:ps1
获取时间
$(get-date)

浙公网安备 33010602011771号