Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Command
Message
 
À
30/01/2003 14:17:06
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00747316
Message ID:
00747343
Vues:
12
I would recommend to avoid using RUN. There are situations when it does not work, and it is hard to find the cause. Try shellexec or winexec API instead. Something like:
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
?ShellExecute(0,"open",fullpath("btest.bat"),"","",1)


>Any ideas why This won't work:
>Set Default To "\\gvmain\applications\foxapps\acltsupport\aclthold"
>Run /N2 btest.bat
>
>but this will:
>
>Set Default To "g:\foxapps\acltsupport\aclthold"
>Run /N2 btest.bat
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform