fbpx

Call anytime and leave your contact details and requirements.

Call anytime and leave your contact details and requirements.

Blog

Your go to place for news, tips and tricks!

How to Create Mapped Drives with Notepad and set Credential Manager using CMD or Powershell

Creating a Mapped Drive with Notepad, Managing File Extensions, and Troubleshooting with Credential Manager

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.

@echo off
net use X: "\\192.168.0.99\share with space" /persistent:yes
net use Z: \\192.168.0.199\share_without_space /persistent:yes


  1. 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.
  2. 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."
  3. 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:

  1. Open a Folder: Navigate to any folder using File Explorer.
  2. 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."
  3. 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. 

×
Stay Informed

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.

How to Create a Local User Account on Windows 11: ...
Network share asking for email and password

Related Posts

Information

For over two decades, we've been helping businesses and individuals with all their Technical Support and Website Service needs - at home and worldwide. And we don't just rest on our laurels - we're always pushing ourselves to stay ahead of the game regarding the latest tech trends. But most importantly, we're committed to providing great service to all our clients - no matter how big or small.

Useful Links

Address

COR Solutions
Repair Center (by appointment only)
52 Walsworth Road
Hitchin
Hertfordshire
SG4 9SX

 

Map