从批处理文件一个一启动宏 [英] Launch macros one by one from a batch file

查看:92
本文介绍了从批处理文件一个一启动宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Firefox中,我想使用Imacros从批处理文件中启动多个宏,但这是问题所在:我希望它们一个一个地运行.
因此,先运行宏1",然后再运行,再运行宏2",依此类推,直到宏7".

In Firefox, Using Imacros, I would like to launch multiple macros from a batch file but here is the problem: I want them to run one by one.
So first 'Macro 1' will run then after it completes, 'Macro 2' will run and so on till 'Macro 7'.

我的批号:

cd C:\Program Files\Mozilla Firefox
start firefox.exe 
ping -n 05 127.0.0.1>nul
start firefox.exe imacros://run/?m=NAMEofMACRO.iim

Imacros VERSION BUILD=7601105

推荐答案

只需更改宏行以使用start开关/wait

Just change your macro line to use the start switch /wait

start /wait firefox.exe imacros://run/?m=NAMEofMACRO.iim
start /wait firefox.exe imacros://run/?m=NAMEofNextMACRO.iim
start /wait firefox.exe imacros://run/?m=NAMEofNextMACRO.iim

这将启动每个,等待其完成,然后启动下一个.

That will launch each one, wait for it to finish, then start the next.

这篇关于从批处理文件一个一启动宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆