I want to create a windows login script that upon logging into the computer will 1. Map a network drive to a folder on one of our servers, 2. once the drive has been mapped run a file from located on that mapped drive, and 3. once the file has completed running disconnect the network drive so the operator cant access it without knowing the full path.
I know to map the network drive you need to use
NET USE Z: \\Server\Path\Folder"
Now as far as running the file once the drive has been mapped and then disconnecting the mapped drive I really dont know how to go about doing it. So I am posting it up for you.