Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Shell command

Status
Not open for further replies.

Jdick

Programmer
Mar 18, 2005
2
CA
Hi,
I need execute a .Pif file that calls a C program with the Shell command and i would like to stop the execution of the Macro while the C program is running.

In Aviva Macro Editor, i was doing it this way:

Id = Shell("f:\test.pif parameter")
While AppFind(Id) <> ""
wend

AppFind will run until Test.pif's execution is over
Now that AppFind isn't available in EXTRA! macro editor, i looking for another to do that
 
Depending on the version of EB your using, it disappeared around 6.4 when they went object oriented.

I used to call macros from macros, and the code would pause while the "shell" command was running. As you've discovered, it no longer does.

I was able to get around this by putting a loop in looking for a file in a certain location and having your shell program create it when it's done. This is a pretty messy solution.

I'm not sure what you're app does, but if your working in C, I'd suggest you create the Extra objects and pilot Extra from C. This will give you a lot more functionality.

I'm a VB programer, so the FAQ is written more for VB, but you'll be able to see the creation of the objects here:

faq99-4069

Good coding...
calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top