Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - archive and update http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                         ARCHIVE and UPDATE
ARCHIVE  and  UPDATE  are a pair of utilities  which  are  useful  for
backing  up  hard  disks  to floppies or  for  ensuring  that  program
versions  are  kept  up  to date  on  multiple  machines.

Archive
Usage
ARCHIVE destpath[filename]
destpath
Drive and path
filespec
File name (wild cards supported, defaults to *.*)

This  program  copies  files from the default directory  to  the  path
specified,  but only if the files also exist on that path and have  an
older date and time.

Example
ARCHIVE a:*.cpp
Copy from the default directory to a: all the .cpp files that  already
exist  on a: provided that the versions in the default  directory  are
newer.

UPDATE
This is a companion program to ARCHIVE for backing up hard disks.

Usage
UPDATE fromspec [destpath]
fromspec
Drive, path and filename (wildcards supported)
destpath
Destination drive and path (defaults to current directory)
Copy  files  from  fromspec  to destpath. Works  just  like  the  COPY
command,  except if the file exists on destpath, and it is  not  older
than the one from fromspec, it is not copied.

Example
UPDATE a:*.cpp\source\bvc
Copy  all  .cpp files from a: to c:\source\bvc provided  they  do  not
already exist in c:\source\bvc, or the version on a: is newer.

General Notes on ARCHIVE and UPDATE
These programs use the date and time stamp of a file, not the  archive
bit in the directory. Using the date and time is more appropriate.

ARCHIVE and UPDATE are analogues of each other. ARCHIVE is useful when
you have a directory on your hard disk that has more sources than will
fit onto one floppy. First, you must copy over onto multiple disks the
files  you  want backed up. Then, at the end of each day,  you  insert
each disk in turn and type:

ARCHIVE a:
[Pressing  F3  for all subsequent disks]. Backing up  is  very  quick,
since  usually  only  a small minority of  the  sources  are  normally
changed.

                      File Maintenance: CHMOD

CHMOD
CHMOD  is  a program which allows file attribute bytes  to  be  either
displayed or modified.

Usage
The CHMOD utility is invoked as follows:
CHMOD {(+|-)flag} [file...]
Where flag is one of R,H,S,V,D,A
R    Read-only
H    Hidden
S    System
V    Volume label
D    Sub-directory
A    Archive

If no flags are given, the attributes are displayed in the format:
__A__SHR0x27IO.SYS

Example
chmod +R myfile.exe
Make myfile.exe read only.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson