File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes tansfer file from one pc to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "tansfer file from one pc to another" Watch "tansfer file from one pc to another" New topic
Author

tansfer file from one pc to another

Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
hi,

the problem is like this..

I have to transfer a file(txt file) from one pc to another.Now i want to write only one program suppose on pc A and that program save this file into C drive of pc B.this program connects to pc B and saves it there.

any suggestions how to do it....

waiting....


rawat
SCJP 1.4
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8877
    
    8

There has to be some process on pc B which is listening for the connection from pc A. You can use FTP, HTTP, map a network drive or write your own custom network protocol but you can't just write a file to pc B.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
got it dude...well i was just asking there may be another way but its nt soo....
 
wood burning stoves
 
subject: tansfer file from one pc to another