Information générale
Catégorie:
Fonctions Windows API
Titre:
Another question about shellexecute
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement