Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Follow a JUNCTION type directory link

Jun
223
0
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.
 
Yeah, that's annoyed me too. %@TRUENAME will see through the junction.
 
Thanks, Charles.

I'd prefer to have a switch for this one though; maybe Rex could do sth. about it?...
 
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.
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>
 
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.
 
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
 
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

Back
Top