Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another question about shellexecute
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00922639
Message ID:
00922709
Views:
23
Darrell,

I believe that means that ftp.exe is not found in your dos path. Can you specify the fullpath to it? You may want to set the working directory.

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

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform