中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 04:40
48,037 topics / 350,122 posts / today 2 new / 48,250 members
DOS批处理 & 脚本技术(批处理室) » How to loop to execute two commands in a VBS script, how to express goto
Printable Version  1,639 / 3
Floor1 hdshjffdd Posted 2006-08-20 12:43
初级用户 Posts 53 Credits 131
How to loop to execute two commands in a VBS script

:a
wscript.sleep 5000
WshShell.SendKeys "^s"
goto a

How to express :a, goto in VBS?
Floor2 3742668 Posted 2006-08-20 14:39
荣誉版主 Posts 718 Credits 2,013
Don't be a restless person. For these basic knowledge, it is suggested that you still read the basic tutorials. The first link given at the end of "In-depth Exploration of Windows Script Technology" is "Windows Script Technology", and there will be detailed explanations in it.
http://download.microsoft.com/download/winscript56/Install/5.6/W982KMe/CN/scd56chs.exe
The following code is an example of an infinite loop:

It is still suggested that you go and read "Windows Script Technology".
Floor3 lxmxn Posted 2006-10-07 15:41
版主 Posts 4,938 Credits 11,386
Thanks to the moderator for providing the script learning materials~
Floor4 electronixtar Posted 2006-10-08 05:23
铂金会员 Posts 2,672 Credits 7,493
I remember that vbs doesn't seem to support goto?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023