• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FTP in Java

 
Bhavesh Ravjee
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to FTP a file to a server. I am not quite sure how to do this.
I have been searching the net but nothing concrete has come up. I had a look at URL, which looks like what I need to do.

Can anyone guide me as to what I need to do. Also which do you think is better
1. ftp a file toa server using Java
2. execute a batch file from java that consists of ftp commands.

Please help...thanks!
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should have searched the Sockets and Internet Protocols forum. You'd get over 100 hits, including this helpful topic. Since this question really belongs in that forum, I'm going to lock it here. Feel free to follow up in the Sockets and Internet Protocols forum.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bhavesh

look at http://www.maulinv.com/projects/projects.html - "Java based FTP".

That might help you...I wrote NetRCParser ..I have not tested it fully though.

Regards,
Maulin
 
Bhavesh Ravjee
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Has anyone used Runtime.getRuntime().exec(some command).
Certain commands do not work. So far its just the net send which does.

How can I get a batch file to be executed from this object. By the way
can ftp be executed using a batch file.

Thanks!
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question comes up a couple times a week.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic