Martin van den Bemt wrote:
it seems to me like attrib is not the equivalent of chmod, nor could any programWhat he means is what does attrib do on a linux box? It should only excecute on a windows box and on no other OS. (unless supported). The goal is (as much as possible) to keep buildfiles platform independend and OS specific implementations should (at least I think that's what is happening now) ignored.
Mvgr, Martin
-----Original Message----- From: J�r�me Lacoste [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2001 6:38 PM To: [EMAIL PROTECTED] Subject: RE: Reminder: [SUBMIT] Attr, a chmod equivalent for Windows
Yes, I know that :-). I'm going through my list. What will
happen if this
is run on Unix. What does it do?
It calls the Windows 'Attrib' program equivalent to 'chmod' on Unix.
We had a thread on it just before it was submitted. (It was submitted by somebody else, somebody proposed a change, I implemented it)
Here's Attrib help on Windows 2000. ----------------------------------- Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [[drive:] [path] filename] [/S [/D]]
+ Sets an attribute. - Clears an attribute. R Read-only file attribute. A Archive file attribute. S System file attribute. H Hidden file attribute. /S Processes matching files in the current folder and all subfolders. /D Processes folders as well.
on windows be the equivalent.
for one, attrib has no notions of users or groups, or execute permissions.
plus the windows permission scheme is so different than unix that any
nt command would have much more complex arguments than chmod,
since you can do per-user, per-group, and global permissions. instead of just
owner, owning group,and global.
--
Matt Inger ([EMAIL PROTECTED])
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
as yet, is suspicious." -H.L. Mencken
