Questions tagged [subst]

33 questions
231
votes
11 answers

How to make SUBST mapping persistent across reboots?

Does Windows (XP or later) have a built-in way to create persitent drive mappings, like the ones SUBST creates? I found a 3rd party tool psubst. Is there a way to do it without 3rd party tools?
rick
  • 2,385
39
votes
2 answers

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
  • 541
22
votes
8 answers

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 to send the files from substed drives to the recycle…
15
votes
4 answers

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 boot the computer the subst command appears to…
Dan
  • 245
14
votes
2 answers

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 mounting drives in folders, but I've been unable to…
zildjohn01
  • 2,337
7
votes
2 answers

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 to use the elevated privileges on something in…
Jonny
  • 173
6
votes
2 answers

Is there a way to use Linux-like symlinks on a Windows computer, referring to a location on another computer?

My application is writing logs to a directory, which is hardcoded "Logs" and is present under the runtime directory of my application. Today, a customer asked me if it was possible to have those logs on another place (on another computer). As a…
Dominique
  • 2,373
6
votes
3 answers

"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 the wikipedia SUBST article and similar. After…
5
votes
7 answers

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 want to get rid of it but I haven't had any luck…
Marcel
  • 1,107
  • 2
  • 8
  • 14
5
votes
2 answers

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 files and not thumbnails, so it's not…
Andy
  • 51
5
votes
0 answers

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\file
5
votes
2 answers

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 of the virtual drive is set the same as the physical drive…
athos
  • 2,371
5
votes
1 answer

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 label. When I try to rename the created drives, I…
THE JOATMON
  • 1,975
  • 14
  • 54
  • 90
3
votes
0 answers

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: There was a problem connecting to the server…
redlamp
  • 131
3
votes
1 answer

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:\Source\Q_Project This worked just fine in Windows 7…
xxbbcc
  • 362
1
2 3