Batch file: read data from input file

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.

Moderator: iMacros Moderators

Batch file: read data from input file

by Hannes, Tech Support on Thu Dec 13, 2007 4:38 am

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
)
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am

Re: Batch file: read data from input file

by SweetBilly on Thu Oct 08, 2009 3:46 pm

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.
SweetBilly
 
Posts: 1
Joined: Sun Oct 04, 2009 8:54 am

Re: Batch file: read data from input file

by Hannes, Tech Support on Fri Oct 09, 2009 1:02 am

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
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am


Return to How-To's and useful iMacros: All other topics

Who is online

Users browsing this forum: No registered users and 1 guest

Website Monitoring