windows - How to map a network drive inside a batch -
My users are using to map network drives. I have developed a tool that uses a network drive. Issue: I can overlap a user-defined drive. How can I open a DOS batch file that will determine a new network drive for my own use You can use pushed \\ server \ share it will map a drive to the first available letter Drive popd The existing directory can be obtained through the Environmental Verbal % cd% .