[Win32utils-devel] Ruby code to create junctions on NTFS volumes.
Berger, Daniel
Daniel.Berger at qwest.com
Fri May 6 10:22:27 EDT 2005
> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
> Zach Dennis
> Sent: Thursday, May 05, 2005 4:25 PM
> To: Development and ideas for win32utils projects
> Subject: Re: [Win32utils-devel] Ruby code to create junctions
> on NTFS volumes.
>
>
> Timothy Byrd wrote:
> >
> > Here is some Ruby code for creating junctions on NTFS volumes.
> >
> > These are the main routines:
> >
> > Dir.junction?(dir) => true if dir is a junction
> >
> > Dir.reparse_target(dir) => returns the target of a junction, or dir
> >
> > Dir.create_junction(junctName, existingTarget) => creates a
> junctName
> > junction pointing to existingTarget
> >
> > (also used (Dan's?) GetLastError code and did some simple
> wide/narrow
> > character conversion)
> >
>
> Timothy, I was able to test your code out tonight. It is very very
> awesome! This is a big help! Thank you so much!
>
> Daniel,
>
> Could this code get put into win32-dir ?
>
> Zach
I plan to. :)
Dan
More information about the win32utils-devel
mailing list