|

“Path not found” with subst

The subst help display this

Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

Which is not really helpful when I encounter this

c:Program Files (x86)Microsoft Visual Studio 10.0VC>subst Y: “c:Program File
s (x86)Microsoft Visual Studio 10.0VC”
Path not found – C:Program Files (x86)Microsoft Visual Studio 10.0VC

Several searches on Google points to things like moved folder or incorrect path, with is not my problem, that is when I figured out what works:

c:Program Files (x86)Microsoft Visual Studio 10.0VC>subst Y: “c:Program File
s (x86)Microsoft Visual Studio 10.0VC”

c:Program Files (x86)Microsoft Visual Studio 10.0VC>

 

Just remove the trailing ” from the path. It’s understandable from a DOS viewpoint that you have to supply a directory name not a path but I have been copying and paste Windows paths for years now without any problem. It looks like Microsoft forgot to update this corner of its apps

Leave a Reply

Your email address will not be published. Required fields are marked *