Berger, Daniel
2005-May-06 10:16 UTC
[Win32utils-devel] Ruby code to create junctions on NTFS volumes.
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@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 ? > > ZachI plan to. :) Dan