The command NET USE allows you to setup a mapped network drive and follows this syntax:
net use <drive letter><network path>
You substitute the variables with your drive information:
net use F: \\server\files
And voila, there's your basic script.
Save the notepad file as <whatevername>.bat
You can add switches to your script for different options, such as:
/delete - to delete a mapped drive /persistent:yes/no - to reconnect the drive upon login
I personally leave it the way it is and just add one more line:
del <whatevername>.bat
This way, I drop it in a user's startup folder and it will run once and that's it.
Copyright © 2011, JS-Infor. All Rights Reserved.
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio? Registrarse gratis