Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute() and Redirection
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00093664
Message ID:
00093794
Vues:
27
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform