How to? Follow a JUNCTION type directory link

Is following a JUNCTION type directory link - like with CD "C:\Users\<user>\Start Menu" - possible?

My intention is to go to "C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Start Menu" (i.e. the target) instead of the junction'ed directory.

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
Or maybe an OPTION setting? Which would persist, and apply to other commands too: CHDIR, CDD, PUSHD, and implied CDD. You could catch most of those through a plugin, but I don't think there's any good way to trap the implied CDD.

If you post it in the feedback forum, I'll give it my one remaining vote.
It's odd that CD doesn't work. CDD and an automatic directory change both work.

Both of these fail.
v:\> cd /d "c:\Users\vefatica\AppData\Roaming\Microsoft\Windows\Start Menu"\

v:\> cd /d "c:\Users\vefatica\Start Menu"\

All of these succeed.
v:\> cdd "c:\Users\vefatica\AppData\Roaming\Microsoft\Windows\Start Menu"\

c:\users\vefatica\appdata\roaming\microsoft\windows\start menu> d
2014-12-22  20:35  <DIR>  Programs
2012-03-09  11:12  174  desktop.ini

c:\users\vefatica\appdata\roaming\microsoft\windows\start menu> v:\

v:\> cdd "c:\Users\vefatica\Start Menu"\

c:\users\vefatica\start menu> d
2014-12-22  20:35  <DIR>  Programs
2012-03-09  11:12  174  desktop.ini

c:\users\vefatica\start menu> v:\

v:\> "c:\Users\vefatica\AppData\Roaming\Microsoft\Windows\Start Menu"\

c:\users\vefatica\appdata\roaming\microsoft\windows\start menu> v:\

v:\> "c:\Users\vefatica\Start Menu"\

c:\users\vefatica\start menu>
Here (Windows 7, 64 bit, 17.00.75) CD, CDD, and PUSHD behave identically:
CD %userprofile%\start menu
will bring you to that exact directory, which has - due to it's JUNCTION nature - no contents.
This is a matter of the security settings on the "Start Menu" junction. On another (more pristine) computer where I could not access/list "Start Menu", I had full access for SYSTEM, myself, and administrators and an entry for "Everyone" specifying "deny list/read". "Deny" entries take precedence. After removing the "Everyone" entry, I could access/list the stuff in there.