Page 1 of 1

Batch file: read data from input file

Posted: Thu Dec 13, 2007 11:38 am
by Hannes, Tech Support
The following batch file reads an input file line by line and uses the file's data in an imacros command line invocation

Code: Select all

@echo off
for /f %%A in (input.txt) DO (
        imacros.exe -macro "#Current" -loop %%A
)

Re: Batch file: read data from input file

Posted: Thu Oct 08, 2009 10:46 pm
by SweetBilly
could this input file contain urls, one per line?

is there a sample where it opens the url in Firefox,
clicks the mouse several times, then closes the webpage.

repeat on next url?

thanks.

Re: Batch file: read data from input file

Posted: Fri Oct 09, 2009 8:02 am
by Hannes, Tech Support
You could indeed use the batch file for this kind of task, but it's more easy, if you run your macro in loop mode, cf. the Demo-Loop-CSV-2-Web demo macro that ships with iMacros