In a batch-file I use the following syntax to map a network drive:
NET USE N: \\someserver\somedirectory.
While this works fine, it also gives an error if the letter n is already used. Is it possible to suppress this error message?
Also, is there a way to unmap a network drive?
I imagine something like:
NET UNUSE N:
After
to remove simply:
To test for an existing mapping you can;