How to Upload files to a ftp directory?
Hi to all,
There is a problem that I cannot upload a file to ftp directory. Who can write a demo to upload file to a ftp directory based on Visual Basic 6.0 SDK? And the root directory of my ftp is public_html not /.
My codes based on VB6 to upload a file to my ftp server as follow:
'Connect to the ftp and return the connect handle 'hCon'
FtpCreateDirectory public_html/MyDir 'create a new ftp directory called MyDir
FtpPutFile hCon, LocalFile,MyDir,0 ' to upload a localfile to the ftp directory 'MyDir', but it fail!
Who can help with this?
Thanks!
There is a problem that I cannot upload a file to ftp directory. Who can write a demo to upload file to a ftp directory based on Visual Basic 6.0 SDK? And the root directory of my ftp is public_html not /.
My codes based on VB6 to upload a file to my ftp server as follow:
'Connect to the ftp and return the connect handle 'hCon'
FtpCreateDirectory public_html/MyDir 'create a new ftp directory called MyDir
FtpPutFile hCon, LocalFile,MyDir,0 ' to upload a localfile to the ftp directory 'MyDir', but it fail!
Who can help with this?
Thanks!