Questions tagged [subst]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

How to change the drive label after mapping a drive letter to a folder

On Windows 10, I wanted to map drive letters to local folders. I used subst initially, but then I found out that deleted files from the mapped drives would just disappear, rather than going to the ...
Nathaniel Tanner's user avatar
1 vote
2 answers
645 views

How do I mount a local folder to a drive letter without SUBST?

SUBST only mounts local directories to drive letters for the current user, so it often doesn't work (run from scheduled tasks, eleveated privileges etc), and it is not persistent across reboots.
Jacob Bruinsma's user avatar
0 votes
1 answer
352 views

Trying to map a drive to a folder in the user's shared Sharepoint Directory

We are trying to map a drive to a folder that is in the user's shared Sharepoint Directory. This has worked for about half of the user's so far but for some reason the script is not working for other ...
Kasey Kalka's user avatar
1 vote
0 answers
177 views

subst Y: says invalid parameter when assigning drive letter

Tried to assign virtual drive to a long path as drive Y:\ with subst Y: in cmd prompt as admin privileges, but it says invalid parameter Y:. I checked with wmic logicaldisk get name but it has not ...
Pretty_Girl's user avatar
3 votes
2 answers
5k views

"DOS Devices" to directory (aka permanent SUBST) not honored after Windows 21H1 update

Previously, a device mapping had been established using HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices to add an alias from D:\ to C:\Build. This approach discussed in ...
user2864740's user avatar
1 vote
1 answer
387 views

Reasign a drive letter with subst still shows wrong name

I created a .ps1 script to mount a folder to the Drive S. This works fine. When I reassign an other folder it still works but the name in the explorer wont be updated. But the correct folder is assign....
Loois95's user avatar
  • 11
0 votes
1 answer
21 views

Prevent Direct access to original subst folder on Windows

I have this subst rule in my Windows 10 PC. d:\Media => E: But the problem is that all search-related program shows two copy of the folder, which is annoying. Some of them have exclude directory ...
DrAnonymous's user avatar
0 votes
0 answers
36 views

Have instant move operations between subst drive and host drive

I have a subst partition. Let say D:\X\ -> X: I need 3 features along with it. A) Recycle Bin (Found tricks already for that) B) Instant move operations between D: and X: C) No access to D:\X\ ...
user avatar
3 votes
0 answers
1k views

Find out the real path of a file from a SUBST drive

Is it possible to find the real location of a file, knowing its location on a drive created with subst? Example: > subst d: c:\dir\ > real_path "c:\file" c:\file > real_path "d:\file" c:\dir\...
Dmitry Grigoryev's user avatar
1 vote
2 answers
714 views

Drive mappings not visible in "net use" or "subst", what kind of drive mappings are they?

A customer is using ExpanDrive for creating network drives. As a result the commands net use and subst don't give any results. However the command wmic logicaldisk reveals the mentioned drive ...
Dominique's user avatar
  • 2,193
4 votes
2 answers
4k views

how to change the Volume of a virtual drive created by subst?

I'm using subst to create virtual drive mapping to a working folder for ease of use (I can't use mklink as "secpol.msc" is disabled, or new-symlink as power script is disabled), the Volume ...
athos's user avatar
  • 2,281
6 votes
2 answers
3k views

Can I run a subst as admin when I startup?

I have a subst command in my startup folder. It adds my Visual Studio projects to a different drive so that it is easier to access, and also so that the path doesn't get too long. Occasionally I need ...
Jonny's user avatar
  • 163
5 votes
1 answer
6k views

Renaming volume created via "DOS Devices" registry key?

Following the instructions in this question, I have created two drives that point to folders on an existing drive. Everything works great. The only problem is that they all have the same volume ...
THE JOATMON's user avatar
  • 1,912
1 vote
1 answer
3k views

Net Use command with relative target path

I have a batch file located in several folders and in this file I need to replace the old subst T: . command for net use because the units (drives) have different properties in windows 7. However, I ...
Jorge's user avatar
  • 121
0 votes
1 answer
1k views

Mount a file/folder as a removable drive

I'm trying to test an application I've written to image USB drives when they're plugged in. Unfortunately, I've just lent my last one to a friend. I know I can mount a folder as a drive using subst ...
Basic's user avatar
  • 1,095
3 votes
0 answers
712 views

SUBST for OSX? Error when trying to map local folder as network drive on Mac OSX 10.9

I would like to map a local folder as a drive (similar to Window's SUBST). One solution I found was to map a shared folder, which would be fine but I get the following error when using a local folder:...
redlamp's user avatar
  • 131
1 vote
2 answers
983 views

SUBST referring path without drive letter

Currently I am making virtual drives using SUBST. subst T: D:\test Now I want to hide my D drive. How to remove a drive letter? And then how can I make a virtual drive referring to a drive that ...
Adeem's user avatar
  • 141
1 vote
1 answer
4k views

unable to remove subst-ed drive

machine: Windows 8 64bit, single user with admin rights I've probably used subst to make a new Q: virtual drive for my C:\portableDrive folder. Now I can't see it when I type "subst" command in the ...
skroslak's user avatar
3 votes
1 answer
6k views

Subst drive invisible in non-admin processes

I have a local folder, X:\Source\Q_Project that I want to map to the Q: drive letter. I use a shortcut that points to a batch file for this. The batch file is: @echo off subst q: /d subst q: X:\...
xxbbcc's user avatar
  • 354
1 vote
3 answers
1k views

Windows 7 gui doesn't display a mapped drive b:

This is an annoyance more than a roadblock, but it doesn't seem to make sense. On my XP box, I got used to subst or mapping drive A: to my general notes and work in progress folders, and drive B: was ...
Rawheiser's user avatar
  • 121
0 votes
2 answers
1k views

net use vs susbst

There are many questions on stackexchange asking for a persistent across reboot functionality, and the answers point either to registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session ...
Miserable Variable's user avatar
5 votes
7 answers
24k views

Unable to unmount "subst" drive

So I have this G: drive which I'm 99% sure I "mounted" using subst to associate a folder with a drive letter. If I double click on it I see the contents of C:\User\Marcel\Google Drive. Anyway, now I ...
Marcel's user avatar
  • 1,107
38 votes
2 answers
97k views

How to delete Windows 7 virtual drive

I created a virtual drive using "SUBST" command. But I can not delete now. Can anybody tell me how can I delete this virtual drive.
Arif's user avatar
  • 531
5 votes
2 answers
671 views

Why can't I index a SUBST'd drive in Windows7?

I've got a SUBST for a folder to drive letter P: I have noticed that exploring these folders from P: is now INCREDIBLY slow, taking up to a minute sometimes to show files. I'm showing them as general ...
Andy's user avatar
  • 51
3 votes
2 answers
1k views

How to make a subst a USB drive appear as a local (non-removable) drive?

I have a set of USB drives (e.g. WD My Book) with different test data sets in different directories. I need to mount these directories as a drive letter. To accurately test the behavior, this drive ...
Richard Haven's user avatar
21 votes
7 answers
7k views

Recycle bin on substed drives

I've created a substed drive on Windows 7. When I delete a file, it doesn't go to the recycle bin, instead it is deleted permanently. Recycle bin properties do not show this drive at all. Any hack ...
Miroslav Zadravec's user avatar
14 votes
4 answers
20k views

Why is a subst drive usable from a command prompt but not Windows 7 explorer

I have a registry key under [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] The value of the key is "c:\windows\system32\cmd.exe" /c subst t: e:\MyFolder More often than not when I ...
Dan's user avatar
  • 235
2 votes
2 answers
641 views

subst performance

Does substing a directory affects the performance creating/reading/updating many small files in the substed volume? (will use svn there) If yes, how serious is the "penalty"?
pihentagy's user avatar
  • 134
-1 votes
3 answers
2k views

Why is a SUBST'd drive inaccessible via shortcut or Run menu, but works fine from My Computer? [closed]

I have shortcuts to C:, D:, and E: in my quick launch bar. C and E work fine when I click on them, but D does nothing (that I can see) when I click on it. D and E are both SUBST'd drives pointing to ...
Kev's user avatar
  • 1,154
14 votes
2 answers
21k views

How to mount NTFS folder in another NTFS folder

Is there any way to redirect one NTFS folder to another? Say, to access C:\Program Files\Modules through S:\Modules? There is subst for mounting folders as drives, and diskpart and mountvol for ...
zildjohn01's user avatar
  • 2,337