I’m trying to check if a drive is mapped to a certain spot, and map it there if its not. How can I check where a drive is mapped? I’m planning on stopping the script if it’s mapped to the wrong spot, and using subst D: C:\folder if it’s not mapped (which is what I wanted) or just continuing on if it’s mapped to where I want (C:\folder for now)
I’m trying to check if a drive is mapped to a certain spot, and
Share
Taken from http://msdn.microsoft.com/en-us/library/t9zt39at(v=vs.85).aspx