I've a requirement to download files from a remote windows machine. It is password protected drive. I don't have access to write server-socket programe on the remote machine. The remote machine is just like a back up data storage location. Would some one please let me know, how to download files from there?
All I wanted to know is, Is there something like SSH/SFTP/FTP(APIs which allow us to connect to remote unix machines) kind of APIs available for windows as well? Any help on this is greately appreciated. Thanks!
If you have a shared folder on the remote machine which is accessible from the outside, and if the files you want to download are in that share, then you can use jCIFS to access the share and read the files.
And when you say "password-protected drive" that sounds to me like you might be describing a share.
I've tried implementing the JCIFS API in my programming. My login failed due "Logon failure: unknown user name or bad password". I know I'm using the correct credentials, but not sure if my syntax is correct. I've gone through the API documentation, but it rather creats sort of confusion to me. Could you please help me how to pass my credentials? Below is the code snippet, I'm using....
But I don't understand your code. It doesn't help that you posted code which you aren't actually using. For example why do you use "Shared drive domain" in one place and "Shared drive IP" in another place? Are they supposed to be the same machine? If so they why are they different? And why are you using a "dir name" where you should be using the name of a share? And why are you using backslashes instead of slashes in your URL?