Hints, tips and tricks for newbies
Moderators: Dorian (MJT support), JRL
-
Courage
- Newbie
- Posts: 10
- Joined: Thu Jul 12, 2007 4:54 pm
Post
by Courage » Thu Jul 12, 2007 6:24 pm
I have this script:
Change Directory>c:\macros
ExecuteFile>c:\macros\pong.bat
Waitwindowclosed>c:\WINDOWS\system32\cmd.exe
Message>HI
When I test it: the pong.bat and the message HI runs at the same time
How can I make the message to show until the window close??
//pong .bat contains: ping 144.93.251.130
thanks.
-
JRL
- Automation Wizard
- Posts: 3526
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Thu Jul 12, 2007 6:36 pm
You could use Run Program> instead of ExecuteFile>. See help for Run Program>
Let>RP_WAIT=1
Run Program>cmd /c c:\macros\pong.bat
Message>HI
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Fri Jul 13, 2007 12:18 am
You can ping directly too:
Let>RP_WAIT=1
Run Program>cmd /c ping 144.93.251.130
Message>HI