Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.1k views
in .NET FTP by (180 points)
Hi,
I am new to this forum and just today started to use this liabrary. Can somebody please guide me how to create a connection to server and get the files and folder list ? Or if somebody can guide me and let me know from where can I get some code or examples on using this liabrary.

Thanks

3 Answers

0 votes
by (162k points)
There are examples in the zip file you downloaded (for edtFTPnet/Free) - see the examples directory.
0 votes
by (180 points)
Thanks. I have managed to create connection and get the files from server. The only problem that I am facing right now is when I tryp to upload a file to server I get the error "Access Denied". I have the access to that server and can create/copy/delete files and folders on the server. I am using the follwoing code

objFTP.RemoteHost = FTPHost
objFTP.Connect()
objFTP.User(FTPUser)
objFTP.Password(FTPPass)

objFTP.Put("\FilledOutForm.pdf", "\internettest\Test")

We have those folder on our server and also have that pdf file on c drive of my machine. Is there anything that I am doing wrong?
0 votes
by (162k points)
Try the full local path name, and don't use backward slashes for the remote name.

objFTP.Put("c:\\mydir\\FilledOutForm.pdf", "/internettest/Test/FilledOutForm.pdf")

Categories

...