How to call EXE file ? How to call EXE file ? Guest (visitor) (OP) 17 Oct 01 04:50 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 RE: How to call EXE file ? ElusiveCoder (Programmer) 17 Oct 01 05:03 Faced this one myself...Nick the WinExec function from the windows API... This can be done with the statementDECLARE LONG WinExec IN WIN32API STRING, LONGOnce that line has been executed, you can spawn another exe by calling the WinExec function, for example: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 email@example.com RE: How to call EXE file ? weedz (Programmer) 17 Oct 01 05:04 Try RUN /NHTH, Weedz (Wietze Veld) My private project:www.crowncap.demon.nl\info\crwnbaseDownload the CrownBase source code !! RE: How to call EXE file ? Guest (visitor) (OP) 17 Oct 01 06:48 Thanks Elusivecode it works fine with API.