• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

FTP in Java

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question comes up a couple times a week.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic