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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call EXE file ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi,

I want to run a program written in visual basic 6.0 and compiled to exe file ?

I tried RUN command but a dos session shows up at the background !!.

I'm using VFP5.0, any comment.

thanks
 
Faced this one myself...

Nick the WinExec function from the windows API... This can be done with the statement

Code:
DECLARE LONG WinExec IN WIN32API STRING, LONG

Once that line has been executed, you can spawn another exe by calling the WinExec function, for example:

Code:
Winexec ("c:\test.exe",5)

The second parameter drives exactly how the exe is opened (Maximised, Minimised etc.). 5 is the normal setting.

Hope that helps you bud.

martin.milan@orange.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top