aspose file tools
The moose likes Java in General and the fly likes copying file remotely Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "copying file remotely" Watch "copying file remotely" New topic
Author

copying file remotely

robbie keane
Ranch Hand

Joined: Sep 05, 2005
Posts: 54
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
Marshal

Joined: Mar 22, 2005
Posts: 35224
    
    7
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.


Android appsImageJ pluginsJava web charts
robbie keane
Ranch Hand

Joined: Sep 05, 2005
Posts: 54
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: copying file remotely
 
Similar Threads
a small GUI question
How to check the file size?
ActiveX to Java
what program can be used to execute .bin file
can i use an xml file for internationalized text instead of Application.properties