Hot to change directories URLConnection

Discussion in 'Java' started by tomazon, Jun 10, 2009.

  1. tomazon

    tomazon

    Joined:
    Jun 10, 2009
    Messages:
    1
    Hi

    I need to write 2 files to 2 different directories in my ftp server,
    but the path to the destination file is already predefined in the
    URL - PA/TH/TO/FI/LE/THEFILE
    URL u = new URL("ftp://USER:pASS@HOST:pORT/PA/TH/TO/FI/LE/THEFILE") ;
    How can i change the destination directories dynamically?

    Your help will beappreciated
     
    tomazon, Jun 10, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. WinstonSmith_101@hotmail.com
    Replies:
    2
    Views:
    3,645
    power_generator_set@yahoo.com
    Oct 25, 2006
  2. mobi999
    Replies:
    0
    Views:
    769
    mobi999
    Jun 9, 2007
  3. Sandy Miller

    Java EE Developer-HOT HOT OPENINGS

    Sandy Miller, Jan 8, 2008, in forum: Java
    Replies:
    0
    Views:
    380
    Sandy Miller
    Jan 8, 2008
  4. Sandy Miller
    Replies:
    0
    Views:
    352
    Sandy Miller
    Jan 17, 2008
  5. Sandy Miller
    Replies:
    0
    Views:
    545
    Sandy Miller
    Jan 28, 2008
Loading...

Share This Page