TEST
PROD
The problem is, they both use M drive to access a resource. Essentially, what I want is when I run TEST application on local machine, I want it mapped to M:\testserver\share and vice versa.
When users run TEST, it should disconnect M: and remap this on local machine:
Code: Select all
net use m: /del
net use m: \\testserver\share
When users run PRODUCTION, it should delete disconnect M: and map this to on local machine:
Code: Select all
net use m: /del
net use m: \\productionserver\share
It's not happening. This batch is being ran on the server, not local machine.