
CODE: [Copy to clipboard]set ws=wscript.createobject("wscript.shell")
ws.run "D:\test"
wscript.sleep 1000
ws.sendkeys("%{f4}")
CODE: [Copy to clipboard]'sendkeys不用%{f4},避免出现关机提示。
set k=wscript.createobject("wscript.shell")
k.AppActivate "test"
k.SendKeys "^w"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |