|
|
发表于 2026-5-3 19:23:37
|
显示全部楼层
本帖最后由 aloha20200628 于 2026-5-3 19:37 编辑
在 win8-11 系统实测 2 楼代码,均不需要 WSH.sleep 加持,手边没有 xp 系统复验,能确认以下是哪个 vbs 版本对 xp 真起作用?
版本一。
- set sa=createobject("shell.application") : set v=wsh.arguments
- if v.count=0 then wsh.quit
- for each i in wsh.arguments
- sa.namespace(10).movehere v(i), 84
- next
- wsh.sleep 1000
- wsh.quit
复制代码
版本二。
- set sa=createobject("shell.application") : set v=wsh.arguments
- if v.count=0 then wsh.quit
- for each i in wsh.arguments
- sa.namespace(10).movehere v(i), 84
- wsh.sleep 1000
- next
- wsh.quit
复制代码 |
|