From: Fernando Cacciola Date: 2007-11-06T02:02:01+09:00 Subject: Re: FileUtils.ln_s in Vista gga wrote: > 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. > Grrrrr, how useless. > - 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. > The above are not a problem in my specific case... but the 31 cap is a showstopper. >> 2.If not, how do I detect the host platform so I can call Vista's >> own mklink instead? >> > > RUBY_PLATFORM =~ /win/ > OK > 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. > I will have to resort to hardinks for Windoze so I won't have to distinguish them. Thans for the tip though. Thanks -- Fernando Cacciola SciSoft http://fcacciola.50webs.com