Category : Utilities for DOS and Windows Machines
Archive   : NEWCHMOD.ZIP
Filename : CHMOD.DOC

 
Output of file : CHMOD.DOC contained in archive : NEWCHMOD.ZIP
CHMOD(1) MS DOS USER COMMANDS CHMOD(1)


NAME
chmod

SYNOPSIS
chmod [=+-][r][h][s][a] file ...

DESCRIPTION

Changes the attributes of 'file'. The file attributes can either
be set (=), or attributes can be added (+) or removed (-) from the
the current attribute. If no attributes are specified, then the file
is marked 'normal' i.e. no attributes set except the archive bit.

Attributes are :
r - readonly
h - hidden
s - system
a - archive

Normally a file has its Archive bit set whenever it is written to
disk. Dos backup turns this bit off after it has backed up a file. So
that files which have not changed since the last backup will have the
Archive bit off.

More than one file can be specified or DOS wildcards may be used
but of course hidden files will not be included in wild card searches.
To change a hidden file its name must be given explicitly.

EXAMPLES

chmod =rha test.c -> sets readonly, hidden and archive
chmod *.c +ar a:*.c -> adds readonly + archive status for all .c
files on current directory and on a: drive
chmod -rh test -> removes readonly and hidden status


SEE ALSO

attrib in the DOS manual (versions 3.x i believe), it is a restricted
version of chmod.

COMMENTS

The command parser attempts to be sensible, so that putting the
attributes after the files or whtever should work as expected.

This is modeled after the unix command of the same name.

NO WARRANTY

This program is provided as is without warranty of any kind,
expressed or implied, including, but not limited to, the implied
warranties of merchantability and fitness for a particular purpose.
The entire risk of using this software is with you. Should this
program prove defective, you assume the cost of all neccessary
servicing, repairs or corrections.

In no event will I be liable for damages, including any lost
profits, lost monies, or other special, incidental or consequential
damages arising out of the use or inability to use this software,
including but not limited to loss of data or data being rendered
inaccurate or losses sustained by third parties or a failure of
the program to operate for any reason, or for any claim by any
other party.

LICENSE

Anyone may copy and use this program and circulate it freely
provided that, under NO circumstances whatsoever may anyone charge
anything or obligate anyone for it in any way. Furthermore, this
notice must accompany any and all copies that are being passed on
to anyone else. This program may not be included with any commercial
product without explicit permission from the author.

I retain all rights to this program. (c) Gene Cohler, January 1987

Newman Lab [email protected]
Cornell Univ [email protected]
Ithaca NY 14853





  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : NEWCHMOD.ZIP
Filename : CHMOD.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/