Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

Format: FILENOTE [FILE] {<file | pattern>} [COMMENT] <comment> [ALL] [QUIET] [FILES] [DIRS]
Purpose: To attach a comment to a file.
FILENOTE attaches an optional comment of up to 79 characters to the specified file or to all files matching the given pattern. The size of the comment is limited, which means that the <comment> argument may be truncated before it is used.

If the <comment> includes spaces, it must be enclosed in double quotes. To include double quotes in a filenote, each literal quote mark must be immediately preceded by an asterisk (*), and the entire comment must be enclosed in quotes, regardless of whether the comment contains any spaces.

If the <comment> argument is omitted or is specified as "", any existing filenote is deleted from the named file.

Creating a comment with FILENOTE is the same as entering a comment into the Comment gadget of an icon's Information window. Changes made with FILENOTE will be reflected in the Information window, and vice versa.

Use the LIST command to view comments made with FILENOTE. If a file has comments, LIST displays them below the file name.

When an existing file is copied to (specified as the TO argument of a COPY command), it will be overwritten, but its comment will be retained. Any comment attached to a FROM file will not be copied unless the CLONE or COM option of COPY is specified.

The options are:

ALL If the ALL option is given, FILENOTE will add the <comment> to all the files in the specified directory.
QUIET If the QUIET option is given, screen output is suppressed.
FILES Only change the comments of the files found.
DIRS Only change the comments of the directories found.

The FILES and DIRS options work together: if you use FILES and omit DIRS, then only the files will be affected and the other way round. If none of FILES and DIRS is used, all files and directories will have their comments changed.

Example 1:

3.OS4:> FILENOTE Sonata "allegro non troppo" attaches the filenote allegro non troppo to the Sonata file.

Example 2:

3.OS4:> FILENOTE Toccata "*"presto*"" attaches the filenote "presto" to the Toccata file.

Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.

Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.