This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: CWD and long paths
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?
> Or if you wanted to get fancy, I bet there's a way to make an
> Installable File System filter driver that would automagically rewrite
> requests to a single generic directory, say, C:\shortenedpaths to the
> working directory for the process that generated the request.
Erm... that's a bit too fancy for me :} I'm looing for a way to
handle this problem from within the Cygwin DLL.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat