Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute()
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00092846
Message ID:
00092966
Views:
29
>>>>Hi George,
>>>>
>>>>Are you surviving the weather up there?
>>>>
>>>>Can ShellExecute() be used to run any DOS program or just DOS commands?
>>>>
>>>>Thanks,
>>>>Bill
>>>
>>>No real problems here in C'ville. I think it went to the NW of us. Rome may have been hit pretty bad, but I haven't heard for sure.
>>>
>>>Yep, you can use ShellExecute() to run a DOS program, just pass it the proper parameters. You really don't need a window handle. Be sure that the command is "open" and the show state is one that will display the window (not hide it).
>>
>>Glad to hear weather is quiet(er) there.
>>
>>Re ShellExecute(), I had some problems with ShellExecute() and have been using WinExec(). What's the difference between these two functions?
>>
>>Bill
>
>Primarily, ShellExecute() is used to run an application's associated with a given file type, a bitmap file, for example, in Paintbrush. All you have to do is pass the file name, and ShellExecute() does the rest.
>
>WinExec() is provided strictly for backward compatibility with 16 bit Windows. You should really use CreateProcess(), but WinExec() will still do the job.

I will look at that, thanks.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform