Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute() and Redirection
Message
 
 
À
21/04/1998 11:13:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00093664
Message ID:
00096553
Vues:
20
Bill,

I just came across this, and it indeed works like a charm

? ShellExecute( hDCScreen, "open", "command.com", "/c dir c:\*.* >>test.txt", "c:\", 1 )

You have to use >> instead of just one

>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().
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform