Are you sure that cServer contains a valid FTP server name and that BAR01B is the full name of a file in the root directory on that server? If the server is Unix, the file name is probably case sensitive. Also, you should confirm that the user ID and password you're sending are correct (they may also be case sensitive).
>I have copied wwipstuff.dll, and put in the code as below, but the function FTPGetFile always returning the value which is not 0(Zero). Do U know why?
>
>
>SET PROCEDURE TO c:\chen\temp\westwind\wwUtils ADDITIVE
>SET CLASSLIB TO c:\chen\temp\westwind\wwIPStuff ADDITIVE
>
>o=createobject("wwIPStuff")
>
>if o.FTPGetFile(cServer,"BAR01B","c:\chen\temp\bar01b",1,cUserId,cPassword)=0
> MessageBox("Ok", 0)
>else
> MessageBox("Fail", 0)
>endif
>
>
>Thanks Josh.