Call anytime and leave your contact details and requirements.

Call anytime and leave your contact details and requirements.


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: "\\\share with space" /persistent:yes
net use Z: \\\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

About COR Solutions Ltd

For over 25 years, COR Solutions has been at the forefront of providing Managed IT services, Web Development, content writing, AI Content Creation and SEO strategies, primarily catering to businesses in Hitchin, Letchworth, Baldock and London. Our commitment extends beyond keeping pace with technological advancements; we proactively adapt and integrate the latest tech trends to offer bespoke solutions. Whether it's robust IT support, dynamic web development, or strategic online marketing, our dedicated team is geared towards elevating your business. We take pride in our ability to offer exceptional service tailored to each business client's unique needs while accommodating individual technical support and website service needs.

Useful Links

Company Information

COR Solutions Ltd
by appointment only, 52 Walsworth Road

Company number 15027891