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!

Syntax for executing an exe file

Status
Not open for further replies.

5218

Programmer
May 31, 2003
5
CA
I can't seem to know what I should put after the directory address in the exec commmand.
I need to program a bounce bar that allows the user to select an option and from his/her selection, I need to execute that selected program.
E.g. my exec command looks like this:
exec('c:\tp\bin\xo.exe','???'); My problem is how to execute an exe file from a parent program.
Thanks for everything
 
"open"
"close"
etc. all the windows parameters for running a program. if you're still unsure, go into a windows folder and look at file extension associations and then look at any particular one (exe would be more beneficial) then you'll see "action" with a list box most probably with "open" in bold.

;)
 
check out the FAQ on my website

(whenever I've got some time I'll put them back here on tek-tips)

Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.
 
It seems like I have to reduce the heap size
How do I do that?
 
{$M <stacksize> <heapmin> <heapmax>}

if heapmin = heapmax = 0 you reserved no heap memory
if heapmin = 0 and heapmax = 655360 you reserve the maximum amount of memory available as heap
if heapmin = heapmax = 655360 you reserve the maximum amount of memory as heap (if there's not enough memory your program won't run)


Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.
 
In case it's not already apparent, your &quot;parent&quot; program must ask for as small a heap (and stack) as it can get away with. By default it will ask for everything, leaving no space for the daughter program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top