Esiste la shell
Esempio:
e nel batcodice:private void button2_Click(object sender, System.EventArgs e) { System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; proc.StartInfo.FileName="c:\\dotnetstuff\\NETDRV.bat"; proc.Start(); MessageBox.Show("Map Drive Created"); }
codice:NET USE U: \\master\testshare /User:Enterprise\dchoksi passwd /PERSISTENT:YES