I start some tests with tFTP. I started with the sample tftp.prg from the samples dir
- Code: Select all Expand view
//----------------------------------------------------------------------------//
function Main()
local oInternet := TInternet():New()
local oFTP := TFTP():New( "207.46.133.140", oInternet ) // Microsoft FTP
local aFiles
if ! Empty( oFTP:hFTP )
aFiles = oFTP:Directory( "*.*" )
AEval( aFiles, { | aFile | MsgInfo( aFile[ 1 ] ) } )
else
MsgAlert( "oFTP:hFTP is null" )
endif
oInternet:End()
MsgInfo( "Done!" )
return nil
It does not work. It goes always to
- Code: Select all Expand view
MsgAlert( "oFTP:hFTP is null" )
I did not find parameters for user and password.
Am I missing something.
Greetings,
Willy