• Post Reply Bookmark Topic Watch Topic
  • New Topic

copying file remotely  RSS feed

 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Urgent: How can i use a standalone java application contact a remote machine (i have username and password of it) and copy file from one location to other. Please send the code or url which i can use. I'm ok creating a .bat file and running it.
Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on the operating system. If It's a Unix-ish machine you can use rcp, if it's Windows you can use the jCIFS library.
 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I'll be using command prompt on my windows XP machine and i'll be connecting to Unix machine. need a little script to make connection and then copy ear file from one location to other.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!