From: gga Date: 2007-11-01T05:58:24+09:00 Subject: Re: FileUtils.ln_s in Vista Fernando Cacciola wrote: > I just found out that Windows Vista supports symbolic links. Contrary to Microsoft propaganda that says this feature was modeled identical to Unix, Vista still does not support true symlinks. Their current implementation suffers from: - being limited to a max of 31 symlinks per directory. - relative symlinks cannot cross volumes. - mklink forces you to distinguish between a file or directory. - other pre-vista windows versions on a network cannot see the symlinks (unlike Samba). - NTFS only, not available on FAT. > 2.If not, how do I detect the host platform so I can call Vista's own > mklink instead? > RUBY_PLATFORM =~ /win/ further check on OS version requires platform specific code or checking the version of cmd.exe or similar. Sys::Admin may give you a more friendly way to do this.