本帖最后由 aloha20200628 于 2024-6-20 11:52 编辑
回复 1# hnfeng
若感觉powershell启动慢,可改用在纯p代码中直接混编调用jscript/vbs的毫秒级暂停功能,以下是cmd+jscript脚本示例,存为test.bat运行...
- @set @x=1 /* &@echo off &set "ms=500"
- for /L %%i in (1,1,9) do (cscript /nologo /e:jscript "%~f0" "%ms%" &echo,第%%i次延迟%ms%毫秒)
- pause&exit/b */
- v=WSH.arguments, WSH.sleep(v(0)), WSH.quit();
复制代码
|