How to Create Mapped Drives with Notepad and set Credential Manager using CMD or Powershell
In today's tech-savvy world, knowing how to navigate your computer's file system efficiently can make your work life much more manageable. One essential skill is creating mapped drives, which allow easy access to network resources. In this guide, we'll show you how to create a mapped drive using a simple .bat file created with Notepad. Additionally, we'll explore how to open a folder and change your Windows view settings to show file extensions. If you ever encounter issues with mapped drives asking for an email and password instead of a username and password, we've got you covered with a troubleshooting solution using Credential Manager.
Creating a Mapped Drive with Notepad
Mapping a drive can simplify your access to network resources, whether it's a shared folder or a network-attached storage device. Let's start by demonstrating how to create a mapped drive using the .bat files we generated earlier:
- Open Notepad: Launch Notepad on your Windows computer. You can find it by searching for "Notepad" in the Start menu.
- Create a .bat File: In Notepad, type the following commands.
net use X: "\\192.168.0.99\share with space" /persistent:yes
net use Z: \\192.168.0.199\share_without_space /persistent:yes
- Replace X: and Z: with the drive letters you want to use for your mapped drives. Note that for file paths with spaces, we've enclosed them in double quotes (e.g., "\\server\share with space"). Ensure that /persistent:yes is included if you want the drives to reconnect at sign-in.
- Save the File: Go to "File" in Notepad and select "Save As." Choose a location where you want to save the .bat file. In the "Save as type" dropdown, select "All Files." Name the file something like MapDrives.bat and click "Save."
- Run the .bat File: Locate the saved MapDrives.bat file and double-click it to run it. You'll see a command prompt window briefly as it creates the mapped drives.
Now, when you open File Explorer, you'll see your mapped drives listed under "This PC." One has a space in the share name, and the other does not, demonstrating how to handle file paths with spaces using double quotes ("").
Showing File Extensions in Windows
File extensions are essential for identifying file types. To ensure you can identify them easily, it's important to display file extensions in Windows:
- Open a Folder: Navigate to any folder using File Explorer.
- Access Folder Options: Click on the "View" tab in the menu bar at the top of the window. In the "Show" group, you'll find an option labelled "File name extensions."
- Toggle File Extensions: To show file extensions, simply check the "File name extensions" box. You'll now see file extensions for all files in that folder.
Troubleshooting Mapped Drives with Credential Manager
If you ever encounter issues with mapped drives asking for an email and password instead of a username and password, here's a solution:
Check out our guide on Troubleshooting Mapped Drives with Credential Manager to learn how to resolve this common issue.
By following these steps, you'll be able to create mapped drives with ease, manage your file system more effectively, and troubleshoot any issues that may arise along the way.
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.