Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
! with no windows
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00811823
Message ID:
00811831
Views:
10
>Hi Everybody,
>
>I use "!" to run an external program. When it runs, a black window is opened and closed (look like when you go to command prompt). How can I execute that program without that black window being shown?
>
>Thank you,
>Ali


You could use WSH or API ShellExecute.
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
#define SW_ASYNC .F.
#define SW_SYNC .T.
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe",SW_SHOW_NORMAL,SW_SYNC)


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