wood burning stoves 2.0*
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
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: 8843
    
    7

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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tansfer file from one pc to another
 
Similar Threads
Running Java Programs from the command prompt
JAR file problem.
How to get read and write an EXE file using C Language?
SENDING FILES FROM CLIENT to SERVER
Move File