Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling an Exe file
Message
From
26/09/2002 19:45:10
 
 
To
26/09/2002 19:38:53
Terry Davis
Enhanced systems consulting
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00705024
Message ID:
00705029
Views:
10
>Dumb question! How do you run an exe file from within a VFP7 program? The exe was not written in foxpro. It also requires parameters be passed to it.
>I tried
>
>run pbfe -ic:\file.in
>
>Thanks for your help.


There are different ways. One is with WSH:
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe",SW_SHOW_NORMAL,.T.)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform