From: Daniel Berger Date: 2005-10-02T14:11:46+09:00 Subject: Re: chmod on Windoze Phlip wrote: > Rubies: > > I'm aware the answer is "because MS Windows is inferior", and I certainly > have no intention of besmirching Ruby, but... > > Why does File.chmod() only work on GNU / Un*x? Why does it punt on Windows? > Has someone fixed this since last I checked? Shelling to ATTRIB is icky. > > CygWin doesn't have this >cough< problem... Why can't I do CreateProcess() on Unix? Windows doesn't have this problem. Seriously, MS Windows just doesn't do permissions the way Unix does, though it does have the equivalent of ACL that most flavors of Unix have. See win32-file if you want to tinker with it. Oh, and actually, File.chmod *does* work on Windows...kinda. You can use 0444 to make a file read-only, or 0644 to make it writeable (or rather, to make it not read-only). You can do trickier things with win32-file. Regards, Dan