Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: how to Download/Copy files from a remote (virtual) location to your local system

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default how to Download/Copy files from a remote (virtual) location to your local system

    hi,
    I have a virtual location with some files. I want to copy those files to my local system using java..Let me know how this can be acheived.

    the remote/virtual loc is something like dis: \\hc-sk378h\Prajwal\Deploy

    there are some files in the Deploy folder, I want to copy them into my local machine.

    I tried using url object, since this is not thru internet, the remote is a virtual location,

    Any help appreciated.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,322
    Thanks
    49
    Thanked 2,194 Times in 2,167 Posts

    Default Re: how to Download/Copy files from a remote (virtual) location to your local system

    What is a "virtual location"? How can a java program access it? What connection possibilities does the OS provide?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: how to Download/Copy files from a remote (virtual) location to your local system

    Virtual location, I mean an UNC.. something like this \\hc-sk378h\Prajwal\Deploy...

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,322
    Thanks
    49
    Thanked 2,194 Times in 2,167 Posts

    Default Re: how to Download/Copy files from a remote (virtual) location to your local system

    Take a look at the API doc for the File class.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] How can i use a local image for main menu, instead of remote one
    By JavaBee in forum AWT / Java Swing
    Replies: 1
    Last Post: July 23rd, 2013, 11:08 PM
  2. Replies: 1
    Last Post: December 5th, 2012, 05:35 AM
  3. Replies: 1
    Last Post: March 22nd, 2011, 06:59 PM
  4. Relay data from remote port to local port
    By chegers in forum Java Networking
    Replies: 0
    Last Post: November 7th, 2010, 11:46 AM
  5. remote system shutdown
    By prince joseph in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 28th, 2010, 02:35 AM