pattr

  • Upload
    jamesyu

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

  • 8/14/2019 pattr

    1/13

    P A T T R I B U T E

    Patri-SoftNorm Patriquin

    Version 1.5November 1990

    Support BBS -- Patriquin's BBS

    714-369-9766 (1200 - 14400 baud)

    Copyright 1990 by Patri-Soft

  • 8/14/2019 pattr

    2/13

    Table of Contents

    What is PATTRIBUTE. . . . . . . . . . . . . . . . . . . . 1

    Features . . . . . . . . . . . . . . . . . . . . . . . . 2

    Command Mode Parameters . . . . . . . . . . . . . . . . . 3

    Examples . . . . . . . . . . . . . . . . . . . . . . . . 7

    Registration. . . . . . . . . . . . . . . . . . . . . . . 8

    Problems and Maintenance. . . . . . . . . . . . . . . . . 10

    Version History . . . . . . . . . . . . . . . . . . . . . 11

  • 8/14/2019 pattr

    3/13

    Page 1

    What is PATTR---------------

    PATTR sets DOS attributes for the files or filename wildcardsyou specify. Use it to set or reset archive status on files or

    to protect/unprotect files with the readonly attribute.

    PATTR's file selection parameters provide you with numerousoptions for specifying the files to be deleted. You may select bydirectory, file, date, attribute, size, and even starting andending filename.

  • 8/14/2019 pattr

    4/13

    Page 3

    Command Parameters------------------

    PATTR allows several command parameter switches to be specifiedto customize the process. All these parameters are optional.

    The command format and switch parameters are described below. Aquick review of command parameters is always available byentering the PDEL command with no parameters.

    COMMAND FORMAT:

    PATTR filespec [ (/ switches) ]

    filespec Enter a DOS file specification. Pathnames andstandard DOS wildcard characters are allowed.

    /SA Select files having the ARCHIVE attribute set.

    /SS Select files having the SYSTEM attribute set.

    /SH Select files having the HIDDEN attribute set.

    /SR Select files having the READONLY attribute set.

    /SO Only useful when /SA /SS /SH /SR is also used.

    Indicates that files without HIDDEN, SYSTEM,READONLY attributes are also to be selected.

  • 8/14/2019 pattr

    5/13

    Page 4

    /D:[(]xxx Date. Select files based on the relationship between[)] their last update date and the date specified. This[=] parameter includes a date or number of days value.

    It may also contain a modifier that reverses ormodifies the use of the date specified.

    When xxx contains a date the date is compared to thelast update date of the file. The last update dateof the file is the date contained in its directoryentry. The file is selected if the condition specifiedby the condition modifier is met. The conditionmodifier meanings are:

    '(' = Select files whose date is older than thedate specified.

    ')' = Select files whose date is newer than thedate specified.

    '=' = Select files whose date is equal to the datespecified.

    If the condition modifier is not specified, ')' isassumed.

    Date values may be specified in any of the followingformats:

    MM/DD/YY MM-DD-YY DDMMMYY12/31/80 12-31-80 31DEC80

    If xxx contains a numeric value, that positive numberis used to calculate a date value a number of daysprior to the current date. Then that date is usedas in the calculation above.

    Example:

    /D:(1JAN86 - Process files updated before 1JAN86/D:)1JAN86 - Process files updated after 1JAN86/D:=1JAN86 - Process files updated 1JAN86/D:(5 - Process files modified prior to 5 days ago/D:)5 - Process files modified within the last 5 days/D:=5 - Process files modified 5 days ago

  • 8/14/2019 pattr

    6/13

    Page 5

    /F:file First. Indicates that processing is not to start untilthe specified full filename is encountered in thescan of the directory.

    /L:file Last. Indicates that processing is to stop afterthe specified full filename is encountered in thescan of the directory. The file specified will beprocessed if it matches selection criteria.

    /M Stop screen from scrolling from scrolling past the endwithout user intervention (MORE).

    /O Indicates that all filenames except those matching

    the filename specified on the input command are tobe selected for processing.

    /P Pause before each file is updated to allow userto approve or reject the action for each file.

  • 8/14/2019 pattr

    7/13

    Page 6

    /SZ: [(] [)] nnn Select a file based on its size. Theleft paren indicates that files less than theindicated size are to be selected. The rightparen indicates to select files greater than thesize. If right or left paren are not specified,

    a left paren is assumed. Following are examples.

    /SZ:100 -- Select files less than 100 characters/SZ:(100 -- Select files less than 100 characters/SZ:)100 -- Select files greater than 100 characters

    /T Test the command. Use this switch when youwould like to test the command entered withoutactually updating any files.

    Messages will indicate what will happen if the commandis executed without the /T switch.

    /AY Set the ARCHIVE attribute for the file on.

    /AN Set the ARCHIVE attribute for the file off.

    /HY Set the HIDDEN attribute for the file on.

    /HN Set the HIDDEN attribute for the file off.

    /SY Set the SYSTEM attribute for the file on.

    /SN Set the SYSTEM attribute for the file off.

    /RY Set the READONLY attribute for the file on.

    /RN Set the READONLY attribute for the file off.

  • 8/14/2019 pattr

    8/13

    Page 7

    Examples:

    Show all attributes for files in current directory

    PATTR *.*

    Set ARCHIVE attribute off for all *.BAK files on diskin drive A:

    PATTR *.BAK /S/AN

    Set READONLY attribute on for all *.SPC files in \SAVEdirectory.

    PATTR \SAVE\*.SPC /RY

    Set HIDDEN attribute on for all files in \SECRET directory

    PATTR \SECRET\*.* /HY

    Reset all attributes for all files in current directory

    PATTR *.* /AN/SN/HN/RN

  • 8/14/2019 pattr

    9/13

    Page 8

    Registering PATTR-------------------

    PATTR is distributed under the Shareware concept. This makes itavailable for anyone to try without obligation. If you decide it

    is useful and want to keep it, I ask that you register your useof it. This will allow for continued support and maintenance ofthe program and will help to encourage that more quality softwarebe made available through this channel. We require allcorporate and government users of this utility register theircopies.

    To simply register the program, $15 is requested. If you wouldlike the newest program disk and a copy of the manual send$30. If you would like to register all the Patriquin utilities,and receive programs on disk and manuals, send $45.

    Send registration requests to:

    Patri-SoftP.O. Box 8363San Bernardino, CA 92412

    The registration charge is a one time fee that entitles you toall future versions of the product. These may either be obtainedfrom normal Shareware sources or directly from me. Anyorganization ordering more than 100 copies is also entitled totelephone support and will be given the technical support number.

    Following is a form that may be used to register PATTR.

  • 8/14/2019 pattr

    10/13

    Page 9

    PATTR RegistrationVersion 1.5

    Please Register PATTR to the following person. We will use ____copies of the program and have enclosed $____ for each copy to

    be used.

    **************************************************************

    _____ Registration only.............................. $15.00

    _____ Registration, program disk and manual.......... $30.00

    _____ Registration of all Patriquin Utilities withprogram disks and manuals................... $45.00

    _____ Update of newest Patriquin Utility disk withmanual. ................................... $15.00

    **************************************************************

    Name: __________________________________________________

    Company: _______________________________________________

    Address: _______________________________________________

    _______________________________________________

    City: ______________________________ State: ___________

    Zip: ______________________

    I obtained my copy of PATTR from: ____________________________

    If BBS indicate name and number please._________________________

    ________________________________________________________________

    Please register the software under the following name:

    ____________________________________________________

    Send to:Patri-SoftP.O. Box 8263San Bernardino, CA 92412

  • 8/14/2019 pattr

    11/13

    Page 10P A T T R

    Problems and Maintenance------------------------

    I welcome all comments or enhancement suggestions. Pleasedocument each item clearly and provide printed examples if

    possible. Please be sure to include this form with all requests,it will help to make sure we can provide you with the bestpossible service.

    Name: __________________________________________________________

    Company: _______________________________________________________

    Address: _______________________________________________________

    _______________________________________________________

    City: __________________________________ State: _______________

    Zip: ______________________________

    Telephone: _______ / ________________________ (Home / Work)

    Date: _________________________

    Description of problem or enhancement:

    ________________________________________________________________

    ________________________________________________________________

    ________________________________________________________________

    ________________________________________________________________

    Suggested solution:

    ________________________________________________________________

    ________________________________________________________________

  • 8/14/2019 pattr

    12/13

    Page 11P A T T R

    Program Maintenance:--------------------

    Version 1.0 October 15, 1986Version 1.5 November 02, 1990

    -- Converted to TurboC-- Fixed /D problem (wouldn't accept 1990 dates)-- Improved help

  • 8/14/2019 pattr

    13/13