When I open a request to a server it opens to a default directory (user directory).
I want to get a file that is in a completely different path.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://" + txtHost.Text);
request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
request.Credentials = new NetworkCredential("xxxx", "yyyy");
request.UseBinary = true;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Now the request points to
'\user\ssfactor'
and I want a file in
'\factor\dktest\pdi'
Is this possible?
If not, can someone offer me another programmatic way? I tried Ssh.Net, but it only seems to work on ssh servers.