FTPDLX GetFile returns 0 byte file and gives Acces - WeOnlyDo Discussion board

FTPDLX GetFile returns 0 byte file and gives Acces (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Ogedei, Wednesday, December 20, 2006, 18:18 (6548 days ago)

So I am using vbscript to download a file to my local machine and it is erroring out.

WeOnlyDo.wodFtpDLXCom.1 error '800a9e66'

Requested action not taken. File unavailable (e.g., file not found, no access).
oftp.remotedirectory RemotePath
oFTP.GetFile valid localPath, remoteFilename

the file transfer starts and creates a 0 Byte file in the local folder.

The local folder has granted Read & execute, write, read and list to the IIS Guest Account and IIS Launch Process.

What else needs to be doen?

Re: FTPDLX GetFile returns 0 byte file and gives A

by woddrazen, Wednesday, December 20, 2006, 18:26 (6548 days ago) @ Ogedei

Hi Brian,


Did you use full path for local and remote path?

Please try something like this:
----------------------------------------------
oFTP.GetFile c:\test\weonlydo.txt , /home/something/weonlydo.txt
----------------------------------------------

You must use always full path for local and remote path.

Let us know how it goes


Regards,
Drazen

Re: FTPDLX GetFile returns 0 byte file and gives A

by Ogedei, Wednesday, December 20, 2006, 18:47 (6548 days ago) @ woddrazen

OK So adding the remote path fixed the getfile issue and the delete file issue however I still have questions.

Why did it work in testing and only break on the server when I did that?
Why does Get file work without a leading / and Delete file not?
What is the purpose of the Remotefoler property if I keep having to provide it to the object?

Thanks
Brian

Re: FTPDLX GetFile returns 0 byte file and gives A

by woddrazen, Wednesday, December 20, 2006, 19:11 (6548 days ago) @ Ogedei

Hi Brian,


I'm not sure how it work with / but you must always use it. In GetFile, PutFile, DeleteFile ... Method.

You can use RemotePath Property, Here is how:

--------------------------------
dlx1.Connect

Wscript.echo dlx1.RemotePath

dlx1.GetFile c:\weonlydo.txt , dlx1.RemotePath & /weonlydo/test.txt
dlx1.DeleteFile dlx1.RemotePath & /weonlydo/weonlydo.txt
--------------------------------

Sample will work if you have weonlydo.txt file in /home/drazen/weonlydo/test.txt folder for example.
RemotePath value is in my sample /home/drazen

Let us know how it goes.


Regards,
Drazen