using Net use to mount Server volume
"cibsrk" <[email protected]> Wed, 04 Jan 2017 16:52:45 +0000
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
New to Netbeans.
I have this button on my form by clicking on it I like to map a server drive on Windows Desktop:
///////////////////////////////////////////////////////////////////////////////////////
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
net use x: \\servername\share /user: myusername my password
}
/////////////////////////////////////////////////////////////////////////////////////////////
My intend is to issue net use command mapping server drive for our users and I have already setup all the fields and buttons in Java form.
Thanks for any help,
Abi