|I have a .bat file that has this in it..|
set /p X=how many times do you want to run the script
set /a N+=1
if !N! gtr !X! goto :eof
Set _Path=C:\Documents and Settings\All Users\Documents\iMacros\datasources
For /F "Tokens=1 Delims=" %%a In ('Dir /A-D /B ablogins.csv') Do (
For /F "Usebackq Tokens=1 skip=1 Delims=" %%I In ("%%a") Do >>"%temp%\%%a" Echo.%%I
Move /Y "%temp%\%%a" .\
"C:\Documents and Settings\owner\Desktop\POST IMACROS\createcsvfile.py"
imacros.exe -macro "C:\Documents and Settings\All Users\Documents\iMacros\Macros\#ABLoginImacros.iim" [/B]
imacros.exe -macro "C:\Documents and Settings\All Users\Documents\iMacros\Macros\#ABImacros.iim" -loop 25 [/B]
imacros.exe -macro "C:\Documents and Settings\All Users\Documents\iMacros\Macros\#ABClearImacros.iim"
When it gets to the imacros lines it will open a imacros window and run that script then close it and open a new window to run the next one. What I need is to run all three imacros in the same window without closing. The reason is one I'm running if it closes the window and opens a new one the sessison expires and does not keep me logged in.