• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to download Files from Remote Windows Server  RSS feed

 
santosh batta
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
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!
 
Paul Clapham
Sheriff
Posts: 22708
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
santosh batta
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much Paul. You are right, that is a shared drive. I'll try this out today.
 
santosh batta
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
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....



The above code is throwing error at line# 5.
 
Paul Clapham
Sheriff
Posts: 22708
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always get that message too.

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?
 
santosh batta
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for the quick response Paul.

The syntax was confusing me. Now, its cleared. The backslashes in the URL were the problem. I just replaced them with slashes & it worked.

Thanks so much!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!