network mapping

Is it possible to map a network share to a drive letter via java?
robert_a_jenkinAsked:
Who is Participating?
 
CEHJCommented:
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
 
CEHJCommented:
You could Runtime.exec net share
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
sciuriwareCommented:
No, or you must exec the command:

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

or such.

;JOOP!
0
 
sciuriwareCommented:
In parallel!

;JOOP!
0
 
robert_a_jenkinAuthor Commented:
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
 
sciuriwareCommented:
YES!

;JOOP!
0
 
sciuriwareCommented:
use the mount command, like in the shell.

;JOOP!
0
 
sciuriwareCommented:
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
 
robert_a_jenkinAuthor Commented:
how do you reopen it
0
 
sciuriwareCommented:
Try to click "Request Attention" above.

(I never done it before).

;JOOP!
0
 
robert_a_jenkinAuthor Commented:
I have tried that without success so far
0
 
CEHJCommented:
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
 
sciuriwareCommented:
You are welcome, CEHJ.

;JOOP!
0
 
CEHJCommented:
Thanks
0
 
sciuriwareCommented:
:)))))))-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.