ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] The "j" attribute   [Help!]

By: Laurent Duchastel     Montréal, Québec  
Date: Oct 27,2018 at 15:51
In Response to: [Help!] The "j" attribute (Colin Liebenrood)

> > > Just moved up to a new HP and windows10; love it and ztree even
> > more
> > > now.
> > > Question: it appears that "access denials" have J attribute. Is
> > this
> > > removable or just an indicator?
> >
> > J means junction points, i.e. link to another directory.
> > Some are reserved to admin or even higher, to system.
>
> Probably worth adding that the Alt-I information window shows the
> destination of the link as its bottom element (at least in recent
> versions).

Good point, Colins.
Also that Alt-F10,2J can hide or show junction points.

I use junction point on a daily basis, to have same directory in different places for mere commodity of access, but also to bypass some limitations of cloud storage (see below).

Here are two F9 scripts I use daily to manage junction points. The scripts reflect the fact that I normally launch ZTreeWin without admin privileges (my preference), thus the elevate utility, which, otherwise, would be necessary.

::J Add junction point
:: REQUIREMENT: http://code.kliu.org/misc/elevate/ to bypass UAC warning (free 6kb utility)
#ZTTOOLS\elevate\elevate64 -c mklink /J "%j2:%j3\%6" "%2:%3"

and

::D Delete junction point
:: REQUIREMENT: http://code.kliu.org/misc/elevate/ to bypass UAC warning (free 6kb utility)
#ZTTOOLS\elevate\elevate64 -c rmdir "%1"

Not directly related to junction point topic, but to the ability to bypass some ot the "access denial" restriction, here is another script I use from time to time. For ZTree session already elevated to admin priviliges, this allows me to elevate even more to system privileges. Very powerful (thus dangerous), but very useful also.

::Y ZTree sYstem (Launch from ZTree already elevated Admin)
:: Find psexec at http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
:: Tip source: Liviu (2014-12-06) http://www.ztw3.com/forum/forum_entry.php?id=118412
"%#ZTTools%\psexec64" -d -s -i "%#ZTHome%\ztw64.exe"

I wrote above that junction points help me to tackle some cloud restrictions:

1. Our Business OneDrive folder has a very long name
"C:\Users\Laurent\OneDrive - Universite de Montreal\"
which make some files or folder below having full path length too long to be opened or launched by some programs or even Windows. Creating a junction point at root C:\ allows me to "shorten" that path.

2. Our Business OneDrive policy forbids to share a folder with people outside our organization, which is ludicrous for an university opened to the world. I imagined a hack "to junction point" a Business OneDrive folder to a Personal OneDrive one, and thus allowing files to be shared, thus circumventing a limitation criticized by many for years. See my comment, third or fourth below in that thread.
https://onedrive.uservoice.com/forums/91...en-onedrive-personal-and-onedrive-for


Laurent Duchastel

145 views      
 

Messages in this Thread

 
93,933 Postings in 11,850 Threads, 347 registered users, 9 users online (1 registered, 8 guests)
Index | Admin contact |   Forum Time: Dec 10, 2018 - 1:33 pm EST  |  Hits:26,925,939  (2,407 Today )
RSS Feed