Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Command to assign local folders as network drives with drive letters!


Local folders can be assigned as network drives with drive letters via the command prompt on Windows 11, 10, ... etc. and MS Server OS!




The net use command  is popular to assign your own computer to shared drives on a network as drive letters. Everyone knows the map network drive function , but very few people know that there is another command with which you can do the same in every folder on one of your local hard drives in order to access the folder directly via the  drive letter !



Contents:

1.) ... Assign a drive letter to the local folder!
2.) ... Release the drive letter again!
3.) ... What should you watch out for when assigning drive letters, history!


1.) Assign a drive letter to the local folder!

With the command:
1. show connected: subst 

2. remove connected from z: subst /D Z:

3. connect C:\Windows: 
subst z: c:\windows\system32 

we can assign the Z:\ drive to the folder and access it!

PS: When you restart the computer, any Subst command will be deleted unless it was placed in autoexec.bat or another location that runs when the computer starts . Or for example in Windows Autostart !


(Image-1) Command to assign local folders as network drives with drive letters!
Command to assign local folders as network drives with drive letters!

-
▲ Back to the top ▲



In this sense, the subst command can be used to replace the virtual drive letter with another drive letter on your computer.

-
▲ Back to the top ▲


2.) Release the drive letter again!


With the command:
subst /d z:

We can assign the to the folder and remove the access via P \ again!
( ... see Image-2 )

The functions of subst :


C:\Users\Nenad> subst /?
Assigns a drive label to a path.

SUBST [Drive1: [Drive2:] path]
SUBST Drive1: / D Drive1

: Name of the virtual drive that is
to be assigned to the path .
[Drive2:] Path Physical drive and physical path
to be assigned to the virtual drive.
/ D Removes the assignment for (virtual) drive1
.

SUBST without parameters shows the virtual drives created with SUBST.



(Image-2) Remove the drive letter assignment from the local folder!
Remove the drive letter assignment from the local folder!


This command prompt trick can make it much easier to access a specific location via the command prompt and the folder will appear as a Windows drive next to all of your real hard drives.

-
▲ Back to the top ▲



3.) What should be considered when assigning drive letters, history!

You can only use free drive letters AZ!

Drive letter mapping is the process of alphabetically mapping identifiers to the paths. In contrast to the concept of UNIX mount points, in which volumes are arbitrarily named and arranged in a single hierarchical namespace, drive letter assignment enables multiple namespaces at the highest level. Thus, drive letter assignment is a process of using letters to denote the roots of the "forest" that makes up the file system.



FAQ 72: Updated on: 1 August 2021 20:00 Windows
Windows-Console

Command line to delete the temporary files on Windows drives!


With the command prompt it is easy to delete the temporary files on Windows 11, 10, drives with a command Anyone who knows Windows drive cleaning and
Windows-Console

Read / display the Windows license key via command line no hack!


It is easy to solve the problem with MS Windows OS to read / display license key via command line If you want to reinstall your Windows 10 or 11, it is
Windows-Console

Repair bad sectors of hard drive with commands of the CMD on Windows 11, 10, ...!


Repairing the bad sectors of the hard drive SSD, HD, using Command Prompt / CMD.EXE commands on Windows 11, 10, and MS Server OS is easy Everyone
Windows-Console

Format external hard drive or USB stick via the command prompt!


It is easy to format an external hard drive or USB stick via the command prompt / cmd.exe for Windows 11, 10, etc. Everyone probably knows how to
Windows-Console

Start two or more programs at the same time from the command prompt!


Starting two or more programs at the same time from the command prompt is pretty easy on Windows 11, 10, etc. Even if this function is not as advantageous
Windows-Console

Change the file attributes, hidden, protected via command line in Windows!


Almost like under Linux and MAC OS, you can simply change the file attributes on Windows via the command line The standard procedure is familiar to everyone,
Windows-Console

Synchronize the clock on your Windows 11, 10, ... etc. with a www time server!


Using the command line it is also easy to synchronize your MS Windows OS with a www time server The simplest method for synchronizing with a time server

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Always wanted to create a drive letter mapping on your local system on Windows? Usually the mappings are reserved for network paths, but mapping a local path to a drive letter can be useful for development or just as a shortcut.
  2. How can I assign drive names to local folders?
  3. I heard that you can assign a folder to a drive letter in Windows that it can be reached via the My Computer button. I'm tired of rummaging through the directory structure on long ways, is there a way to assign a drive letter to a folder with a long path as the map. This would save me a lot of time on frequently accessed folders. For example, I could assign a long path like D: \ My Documents \ Stefan \ to drive letter Z.?
  4. I need to access folders frequently, and I want to learn how to quickly access these folders in Windows Explorer without having to enter the full path to the folder. We're going to discuss three ways to map folders to control letters, is that possible?
  5. I'm not entirely sure that a mapped drive will work, and so far this is the technique I ended up using, but it doesn't seem to cut into it until quite late in the boot process. I've also tried putting SUBST commands in batch files during startup in the past, but that doesn't seem to work either.?
Keywords: windows, console, command, assign, local, folders, network, drives, with, drive, letters, assigned, prompt, Questions, Answers, Software




    

  + Freeware
  + File management
  + Decoration and fun
  + Automation
  + Office
  + Order on the PC
  + PC testing tools

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + Print.Test.Page.OK
  + OpenCloseDriveEject
  + ColorConsole
  + IsMyLcdOK
  + DesktopDigitalClock
  + ClassicDesktopClock
  + PreventTurnOff
  + QuickMemoryTestOK
  + IsMyHdOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2022 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► Chrome via desktop and quick launch bar as shortcut under Windows 10/11! ◄ ► Change Mouse Pointer and Cursor size on Windows-10/11, (smaller, larger)? ◄ ► Microsoft Server 2016 and 2012 Difference? ◄ ► Dragging doesn"t work at all when dragging from a network (mapped) drive! ◄ ► Difference between laser and ink printers? ◄ ► How can i translate MultiClipBoardSlots in my language? ◄ ► How can I activate / deactivate the mouse trails in Windows 11? ◄ ► Enable Windows 8 Style Start Screen in Windows 10! ◄
This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....