The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "Example-Batchfile.bat"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
This example demonstrates using batch files to run multiple macros with command line parameters. | This example demonstrates using batch files to run multiple macros with command line parameters. | ||
− | echo Example iMacros Batch File | + | @echo Example iMacros Batch File |
− | + | @echo Tip: You may have to adjust iMacros default macros folder to iMacros\Macros\Demo | |
− | + | @REM %pf% expands to the right program location depending if it is x86 or x64 system | |
− | " | + | @setlocal |
− | + | @set pf=%ProgramFiles% | |
+ | @if not "[%ProgramFiles(x86)%]"=="[]" set pf=%ProgramFiles(x86)% | ||
− | echo Batch file completed | + | @REM %macropath% expands to the demo macros path |
+ | @set macropath=%~dp0..\..\Macros\Demo | ||
+ | |||
+ | "%pf%\Ipswitch\iMacros\iMacros.exe" -macro "%macropath%\FillForm.iim" | ||
+ | "%pf%\Ipswitch\iMacros\iMacros.exe" -macro "%macropath%\Loop-Csv-2-Web.iim" -loop 4 | ||
+ | |||
+ | @echo Batch file completed | ||
pause | pause |
Latest revision as of 12:37, 27 May 2015
This example demonstrates using batch files to run multiple macros with command line parameters.
@echo Example iMacros Batch File @echo Tip: You may have to adjust iMacros default macros folder to iMacros\Macros\Demo @REM %pf% expands to the right program location depending if it is x86 or x64 system @setlocal @set pf=%ProgramFiles% @if not "[%ProgramFiles(x86)%]"=="[]" set pf=%ProgramFiles(x86)% @REM %macropath% expands to the demo macros path @set macropath=%~dp0..\..\Macros\Demo "%pf%\Ipswitch\iMacros\iMacros.exe" -macro "%macropath%\FillForm.iim" "%pf%\Ipswitch\iMacros\iMacros.exe" -macro "%macropath%\Loop-Csv-2-Web.iim" -loop 4 @echo Batch file completed pause