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 8 of 8

Thread: Map Drive Locally

  1. #1
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Map Drive Locally

    Hi everyone,
    I searched for the forums and find this one the most suitable. If this is not appropriate, Kindly move it to the appropriate one (Moderators or Administrators).
    Well, my problem is as under:
    I have a Windows Server 2008 R2 at some location say 1.2.3.4 and i am at IP 10.100.200.1, i want to map the drive D of my server (1.2.3.4) locally on my machine using command prompt command or anyother suitable thing that could easily be called through java or integrated easily within java application.
    I have tried many things, google'd a lot but couldn't find it out. The most closest thing i have done is
    net use u: \\1.2.3.4\D password /user:admin
    but in the end it throws an error like System Error 67 has occured.

    Any help or ideas???

    Regards...
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Map Drive Locally

    No help with it?
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,149
    Thanks
    48
    Thanked 2,158 Times in 2,131 Posts

    Default Re: Map Drive Locally

    Can you explain how your problem is related to java programming?
    If you don't understand my answer, don't ignore it, ask a question.

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Map Drive Locally

    Quote Originally Posted by Norm View Post
    Can you explain how your problem is related to java programming?
    Yeah. I actually want to map the server's drive on local machine through my java application. That is just one part of the application and i am bugged with it. I have managed to map it in linux but no luck with windows.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,149
    Thanks
    48
    Thanked 2,158 Times in 2,131 Posts

    Default Re: Map Drive Locally

    Is it a question of using the correct OS path in a String in some java class/method?
    If you don't understand my answer, don't ignore it, ask a question.

  6. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Map Drive Locally

    Nope, it's the question to ask if anyone has tried using command prompt coz i can then execute the command prompt's command in java.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  7. #7
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,149
    Thanks
    48
    Thanked 2,158 Times in 2,131 Posts

    Default Re: Map Drive Locally

    It sounds like an OS question, not a java programming question.
    If you don't understand my answer, don't ignore it, ask a question.

  8. #8
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Map Drive Locally

    No worries i am able to solve this.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

Similar Threads

  1. Lucene Index Writing on SSD Drive
    By jigna joshi in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 4th, 2011, 12:53 AM
  2. Map Network Drive using Java
    By umapathy in forum Java Networking
    Replies: 2
    Last Post: May 24th, 2011, 07:49 AM
  3. JEditorPane - following links within locally created HTML
    By davedude in forum AWT / Java Swing
    Replies: 1
    Last Post: January 21st, 2011, 03:32 PM
  4. Java program to open and close computer CD/DVD drive
    By JavaPF in forum Java Programming Tutorials
    Replies: 0
    Last Post: January 28th, 2009, 11:04 AM
  5. Java program to open and close computer CD/DVD drive
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: January 28th, 2009, 11:04 AM