Mapping a network drive lets you assign a drive letter (like Z:) to a shared folder on another computer or NAS so you can access it like a local drive. In this post you'll learn how to map, disconnect, and troubleshoot network drives using the classic Windows Command Prompt (cmd.exe). I'll cover common options, practical examples, and tips for scripting and automation.
Z: is the drive letter you want to assign.\\server\share is the network path.Tips and Best Practices