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
Solved

network mapping

Posted on 2009-05-07
17
250 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jar file executable 12 58
maven module vs maven project 3 46
Is there a simpler dropbox system? 10 34
Eclipse Java import and method not resolved 4 48
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…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
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:

856 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