批处理循环执行100次一个命令
我要把这个ierunner.sendkeys"{TAB5}"ierunner.sendkeys"{ENTER}"wscript.sleep3000ierunner.sen...
我要把这个ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"执行100次,在批处理中该怎么写FOR语句啊 展开
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"执行100次,在批处理中该怎么写FOR语句啊 展开
展开全部
@echo off
for /l %%a in (1,1,100) do (
ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"
)
不是很了解VBS
for /l %%a in (1,1,100) do (
ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"
)
不是很了解VBS
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这4行代码都是vbs呀
如果是vbs的话应该这么写:
for i = 1 to 100
ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"
next
或者
dim a
a=0
do while(a<100)
ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"
a=a+1
loop
另存为a.vbs,双击运行即可
如果是vbs的话应该这么写:
for i = 1 to 100
ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"
next
或者
dim a
a=0
do while(a<100)
ierunner.sendkeys "{TAB 5}"
ierunner.sendkeys "{ENTER}"
wscript.sleep 3000
ierunner.sendkeys "Alt%Fc"
a=a+1
loop
另存为a.vbs,双击运行即可
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
设这个文件为a.vbs文件
@echo off
for /l %%i in (1,1,100) do start wscript.exe a.vbs
@echo off
for /l %%i in (1,1,100) do start wscript.exe a.vbs
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询