Solved

network mapping

Posted on 2009-05-07
17
251 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
Independent Software Vendors: 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 80
maven disable workspace resolution 1 43
JDBC performance 8 29
Where to place postgres JDBC driver jar on tomcat 8 33
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

730 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