Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling another EXE
Message
From
04/03/2004 15:42:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00883248
Message ID:
00883254
Views:
7
>Can you consume another NON FOXPRO EXE /w Paramaters using FoxPro or just run it using FoxPro without it displaying.

>Can you consume another NON FOXPRO EXE /w Paramaters using FoxPro or just run it using FoxPro without it displaying.

Yes. There are more than one way to do this. My favorite is using the Shell32.dll. There are threads here that someone might be able to point it to you. Note that I removed the validation codes to make sure that the parameters received are valid.
function ShellExec(tcFileName,tcParameters,tcWorkDir,tcOperation)
   declare integer ShellExecute ;
      in SHELL32.dll ;
      integer nWinHandle,;
      string cOperation,;
      string cFileName,;
      string cParameters,;
      string cDirectory,;
      integer nShowWindow
   return ShellExecute(0,lcOperation,lcFileName,lcParameters,lcWorkDir,1)
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform