×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Syntax for executing an exe file

Syntax for executing an exe file

Syntax for executing an exe file

(OP)
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

RE: Syntax for executing an exe file

"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.

;)

RE: Syntax for executing an exe file

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
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.

RE: Syntax for executing an exe file

(OP)
It seems like I have to reduce the heap size
How do I do that?

RE: Syntax for executing an exe file

{$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
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.

RE: Syntax for executing an exe file

In case it's not already apparent, your "parent" 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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close