I have a batch file that checking the internet connection, if the connection internet is up, launch firefox with a macro and go on pause.
During this time fiefox works with the macro, after firefox finish the work automatically close.
Now i need to continue the code of the batch opened after firefox finished the works and will be closed but batch file reast in pause.
Exist a solution to continue the batch file opened without manual intervention ?
This is the code of my batch file (ping to check connection, sound to alert me, start firefox with macro, pause batch file)
PING -n 5 www.wikipedia.org|FIND /I "TTL">NUL IF NOT ERRORLEVEL 1 rundll32 user32.dll,MessageBeep 0x00000010L IF NOT ERRORLEVEL 1 start "" "D:\Programmi Installati\Firefox\FirefoxPortable.exe" imacros://run/?m=work.iim IF NOT ERRORLEVEL 1 PAUSE
I do not know how long it takes for firefox to complete the job so I use the pause command.