- @echo off
- set "@block={$t=get-date;($t-[datetime][int64]$args[0]).tostring()}"
-
- for /f %%i in ('powershell -c "(get-date).ticks"') do set @time=%%i
- ab.exe 1.txt
- for /f %%i in ('powershell -c "%@block%.invoke(%@time%)"') do echo 已运行 %%i
-
- for /f %%i in ('powershell -c "(get-date).ticks"') do set @time=%%i
- cd.exe 2.txt
- for /f %%i in ('powershell -c "%@block%.invoke(%@time%)"') do echo 已运行 %%i
复制代码
|