A batch file is a text file containing a series of commands intended to be executed by the command interpreter. When a batch file is run, the shell program reads the file and executes its commands, normally line-by-line.

The following script can be used as a logon script to map a network drive to users home directory  (or any directory) on the server or somewhere else.

1- Copy and past the script in a text editor, notepad will dose the job perfectly. (more…)