Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in .NET FTP by (160 points)
Hello I am learning FTP with your excellent DLL.
I need to login to a FTP server to a specific Directory.
But there are no options in the dll to set a Directory path.
here i read some posts about users talking about DIR.
but there were not such options coming up when using the dll.

I need some help.

1. I need to know how i should connect to a ftp server to a specific directory.
2. I also need to know how i can able to change to a directory after i create a new directory.
ie creating a new directory and then change to that directory.

Thanks for this wonderful DLL. Looking forward to your answers eagerly.
Regards

3 Answers

0 votes
by (51.6k points)
FTPConnection has no Directory property. Instead, it has the following methods:

You can create directories with CreateDirectory and delete them with DeleteDirectory.

- Hans (EDT)
0 votes
by (160 points)
Thank you very much for the reply.

Now Assume FTP:\www.myftpdomain.com is my FTP Server.
and mydomainFolder/myfolder is the directory i need to map so that i can view files inside the myfolder directory.

I should provide the servername, username and password and after the the application connect to the server
do i use ChangeWorkingDirectory(mydomainFolder/myfolder ) to go to that directory?

Thanks in advance for the reply.
Regards
0 votes
by (162k points)
Try connecting via FileZilla to get a GUI view of the directories - you'll soon see what directory you need to change into.

Categories

...