home *** CD-ROM | disk | FTP | other *** search
- chmode (local) Disk Utilities v1.1 chmode (local)
-
- NNAAMMEE
- chmode - This utility is used to modify the modes of files.
- It is very similar to the DOS command "chmod", but I like its
- format better, and the fact it can change the mode of multiple
- files.
-
-
- SSYYNNOOPPSSIISS
- chmode <+-irwsa> [file ...]
-
-
- EENNVVIIRROONNMMEENNTTSS
-
- Options for this program will also be looked for in
- command.com's environment. This is done with the set command
- (e.g. set chmode=+a causes chmode to always use the option +a).
-
-
- OOPPTTIIOONNSS
-
- + - Add any attributes which follow.
-
- - - Subract (remove) any attributes which follow.
-
- i - Take the names of the files to modify attributes from stdin.
-
- r - Read (not hidden) attribute. This determines if the file
- shows up in commands such as dir.
-
- w - Write attribute. This tells if the file can be modified.
-
- s - System attribute. Tells if the file is a system file (ex:
- ibmbio.com ibmdos.com)
-
- a - Archive atribute. Often used for incremental backups, this
- bit is set whenever a file is modified. Thus is can be used to
- tell which files have been modified since the last backup.
-
-
- EEXXAAMMPPLLEESS
-
- chmode +rwsa *.com
- Make all files ending in ".com" have (in addition to their old
- attributes) the read, write, system, and archive attributes set.
-
- chmode +rw -s t.com *.obj c:\*.*
- Add the attributes read and write while removing the system
- attributes from t.com, *.obj, and c:\*.*.
-
- find c:\ | chmode -ia
- Remove the archive attribute from all files on the c drive.
-
-
- BBUUGGSS
-
- None that I know of!
-
-
-
-
-
-
- -1-
- !
-