Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another question about shellexecute
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Another question about shellexecute
Divers
Thread ID:
00922639
Message ID:
00922639
Vues:
68
In the following code I will get a 2 as a return.
lDidItWork will return a 2 (invalid Path or filename)
Not sure what I am doing wroing here?



DECLARE INTEGER ShellExecute IN Shell32.dll ;
LONG HWnd, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParameters, ;
STRING cPath, ;
INTEGER nShowWindow


lnshow=1
m.ScriptFile = "TestScript" + sys(3) + ".txt"

set alte to (m.ScriptFile)
set alte on
?? "open XXX.XXX.XXX.XXX" && set of numbers would go here
? "tc"
? "tc01"
? "prompt"
? "cd /testdata/tc/8076076"
? "lcd " + curdir()
? "pause"
? "quit"
set alte off
set alte to
wait wind "" timeout .5


cAction="open"
cFileName ="ftp -s:" + curdir() + m.ScriptFile
lDidItWork=ShellExecute(0,'open',cFileName,"","",1)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform