How to? Follow a JUNCTION type directory link

Jun 24, 2008
223
0
Siegen, Germany
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
4,689
106
Albuquerque, NM
prospero.unm.edu
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.
 
May 20, 2008
12,178
133
Syracuse, NY, USA
It's odd that CD doesn't work. CDD and an automatic directory change both work.

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

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

v:\>

All of these succeed.
Code:
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>
 
Jun 24, 2008
223
0
Siegen, Germany
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.
 
May 20, 2008
12,178
133
Syracuse, NY, USA
What about an automatic directory change?
Code:
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
 
May 20, 2008
12,178
133
Syracuse, NY, USA
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.
 

Similar threads