Solved

network mapping

Posted on 2009-05-07
17
249 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
  • 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now