Solved

network mapping

Posted on 2009-05-07
17
246 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
Comment Utility
You could Runtime.exec net share
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
No, or you must exec the command:

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

or such.

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
In parallel!

;JOOP!
0
 

Author Comment

by:robert_a_jenkin
Comment Utility
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
Comment Utility
YES!

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
use the mount command, like in the shell.

;JOOP!
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
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
Comment Utility
how do you reopen it
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
Try to click "Request Attention" above.

(I never done it before).

;JOOP!
0
 

Author Comment

by:robert_a_jenkin
Comment Utility
I have tried that without success so far
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
You are welcome, CEHJ.

;JOOP!
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Thanks
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
:)))))))-
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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 different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

762 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

8 Experts available now in Live!

Get 1:1 Help Now