Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
19.2k views
in General by (400 points)
Hi, does anyone had a problem like this?

System.UnauthorizedAccessException: Access to the path "d:\ftp" is
denied.

I'm getting anoying with this!
Below there's the code i'm using.
---------
Dim ftp As New FTPClient("ftp.xxx.com")
ftp.Login("user", "passwd")
ftp.ConnectMode = FTPConnectMode.ACTIVE
ftp.TransferType = FTPTransferType.BINARY
ftp.Get("d:\ftp", "gzip.exe")
ftp.Quit()

12 Answers

0 votes
by (400 points)
Hi,

I wonder if this is possible, how can i make a ftp.dir("file.txt") to know if the file exists or not in the directory i selected in the server, in this way or another.

Can you help?

Jorge
0 votes
by (161k points)
Do exactly as you suggest:

ftp.dir("file.txt");

you will probably (depending on the server) get an exception if the file does not exist.

Hi,

I wonder if this is possible, how can i make a ftp.dir("file.txt") to know if the file exists or not in the directory i selected in the server, in this way or another.

Can you help?

Jorge

Categories

...