Dec 262017
 
Set / reset file attributes.
File NEWCHMOD.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
Set / reset file attributes.
File Name File Size Zip Size Zip Type
CHMOD.C 4997 1896 deflated
CHMOD.DOC 3206 1471 deflated
CHMOD.EXE 8669 5720 deflated
CHMOD.FIX 479 277 deflated

Download File NEWCHMOD.ZIP Here

Contents of the CHMOD.DOC file


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





 December 26, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)