Solved

network mapping

Posted on 2009-05-07
17
252 Views
Last Modified: 2012-05-06
Is it possible to map a network share to a drive letter via java?
0
Comment
Question by:robert_a_jenkin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
  • 3
17 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24326510
You could Runtime.exec net share
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24326512
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24326520
No, or you must exec the command:

CMD C:\WINDOWS\SYSTEM32\NET USE S: \\othersystem\sharedfolder

or such.

;JOOP!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 24

Expert Comment

by:sciuriware
ID: 24326533
In parallel!

;JOOP!
0
 

Author Comment

by:robert_a_jenkin
ID: 24326552
whould the runtime.exec method also work on a unix environment. the windows net use is clear and via this I can user accounts for security. but what would be a simular solution for unix?
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24326663
YES!

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24326670
use the mount command, like in the shell.

;JOOP!
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 24326705
robert_a_jenkin, i'm confused. You posted a question and then accepted an answer to a different question. Unix systems don't have 'drive letters' ...
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24328038
Yes, robert_a_jenkin, this is not fair.
At least you could give CEHJ half of the points!
Please reopen the question and do right.
;JOOP!
0
 

Author Comment

by:robert_a_jenkin
ID: 24328210
how do you reopen it
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24328497
Try to click "Request Attention" above.

(I never done it before).

;JOOP!
0
 

Author Comment

by:robert_a_jenkin
ID: 24328521
I have tried that without success so far
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24328953
Don't worry this time. I made an error - of course cleaned up by sciuriware - it's of course net use, not net share

Thanks for your support Joop
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24333189
You are welcome, CEHJ.

;JOOP!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24556385
Thanks
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 24557158
:)))))))-
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question