You are here: iOpus > iMacros > Support > IM Tutorial: Command Line Interface 

Tutorial: Batch Files 

Prerequisites:  iMacros Pro or Scripting Edition  

Goal: Automate the IM Web browser with the iMacros Command line interface and batch files.

The iMacros Command Line Interface is an easy way to automate your web browsing tasks. It can be called from batch files, the task scheduler, directly from the Windows run box or from any windows program.
 
echo off
echo Example iMacros Batch File
REM Tip: You may have to adjust the path names to YOUR installation directory of iMacros

"[programpath]" -noexit -macro wsh-submit-2-web -var_fname Tim -var_lname Test -var_address Mainstreet[SP]1 -var_city New[SP]York -var_zip 14128 -var_state-id New[SP]York -var_country-id United[SP]States -var_email tim.test@test.com

echo iMacros Returncode = %errorlevel% 
pause