This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: CWD and long paths
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...