Map A Drive In Windows Command Prompt (DOS)

To temporarily map a drive in the Windows command prompt (DOS):
  • pushd \\server\folder
The current directory changes to the mapped drive.


To see which drive letter has been mapped:
  • net use


To end the temporary mapping:
  • popd


To map a drive to a specific letter:

  • net use <letter>: \\server\folder


To unmap the drive letter:
  • net use <letter>: /DELETE

No comments:

Post a Comment