Jan 092018
 
Set file and directory attributes with this great little program.
File FLAGS.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
Set file and directory attributes with this great little program.
File Name File Size Zip Size Zip Type
FLAGS.COM 1442 941 deflated
FLAGS.DOC 3063 1357 deflated

Download File FLAGS.ZIP Here

Contents of the FLAGS.DOC file


FLAGS Version 1.2

(c) Copyright 1986
Dr. William C. Parke
1820 S Street NW
Washington, D.C. 20009

DISTRIBUTION

FLAGS Version 1.2 may be freely copied and distributed as long as
the only charge is for media and reproduction costs. Under no
circumstances should the program be distributed with a commercial
product, sold for profit, or distributed in modified form without
express permission of the author.

DESCRIPTION

FLAGS is an MS-DOS utility to look at and/or set the attribute
flags on files or directories. Although such utilities are
plentiful in the MS-DOS world, FLAGS has the distinction of
being capable of setting any of the file or directory flags
which can be set, in showing the user both the old and new
flags for each file, and in its ease of use.

ENTRY SYNTAX

FLAGS filename /flags

Valid file attribute flags are:

A - Archive H - Hidden D - Directory
R - Read only S - System V - Volume

The filename can be ambiguous.

If no / is given, current flags are shown.

Directories can have additional flags, but volume names cannot.

Neither the D nor the V flag can be changed.

EXAMPLES

(1) Showing the current flags on a set of files.

FLAGS FOOBAR.*

shows current attributes of all files with name FOOBAR.* in the
format:

File name Current Flags
FOOBAR AAA RHS A
FOOBAR BBB A .

(2) Removing flags from a set of files.

FLAGS FOOBAR.* /

removes all attribute flags on FOOBAR.COM. Old and new flags will be
displayed in the format:

File name Old Flags New Flags
FOOBAR.COM RHS A .

(3) Setting various flags on a set of files.

FLAGS *.EXE /HRS

sets the H, R, and S flags on files with EXE extension. Old and new
flags for files with the EXE extension will be displayed:

File name Old Flags New Flags
FOOBAR EXE A RHS
NEWBAR EXE H RHS .

(4) Hiding a directory.

FLAGS SECRET / H

sets the H flag on the directory SECRET. This directory will no
longer show in a standard directory display, such as that produced
with the DIR command. The command CD SECRET, however, will still
work. This ability to 'hide' a directory has a minimal level of
security. You should put FLAGS.COM and any directory programs which
show hidden files in a hidden directory. If this hidden directory is
defined in a PATH, the utilities within will still run.


OTHER USES

FLAGS is useful for setting up files for backup, hiding files which
need protection from some MS-DOS operation, revealing hidden files
which some programs create, and exposing system files for alteration
or replacement.

ERROR MESSAGES

Message Explanation

Cannot use with MSDOS 1.x FLAGS uses MS-DOS 2.x functions
File not found No file in current directory
Invalid attribute Valid attribute symbols are RHSA or B
Flags cannot be changed File flags are locked


 January 9, 2018  Add comments

Leave a Reply