Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute() and Redirection
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00093664
Message ID:
00093794
Views:
26
>>Is it possible to use ShellExecute() to execute a DOS program AND redirect the DOS program's output to a file. I have not been able to get this to work with ShellExecute() by placing the redirection operator and file name in the Parameters variable. However, I have been able to get this to work with WinExec(), but not ShellExecute().
>>
>>Thanks,
>>Bill
>
>Bill,
>
>In my opinion, ShellExecute() is intended for opening or printing files, but it can also start an executable. This latter capability I look on as an extended feature. I don't think that you'll be able to do any re-direction of DOS from it, but I very well could be wrong.

Thanks George. I have it working with WinExec() plus a PIF file so I'll just stay with that for now.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform