CWD and long paths

Lev Bishop lev.bishop@gmail.com
Fri Oct 12 18:53:00 GMT 2007


On 10/12/07, Corinna Vinschen wrote:
> On Oct 12 13:37, Lev Bishop wrote:
> > Ok, then. How about something roughly like this:
> >
> > CreateJunctionPoint("/very/long/path/","/temp/shortpath");
>
> Doesn't work on NT4, unfortunately.
>
> > SetCwd("/temp/shortpath");
> > Execute(win32_exe);
> > RemoveDirectory("/temp/shortpath");
> >
> > I believe junction point targets can as be as long as the NTFS maximum.
>
> I think so, yes.  But, can every user create a directory juntion point
> or is that restricted to admin users?

Yes, a limited user can still create junction points(*). Making
junction points is how subst does its thing. (Also I think 'net use'
and others).

Lev

(*) At least on my winxp-home-sp2...



More information about the Cygwin-developers mailing list