Amiga World Official AmigaDOS 2 Companion - eBook-ENG

Page 275

Manipulating Files and Devices

Note that the COMMENT argument is not required. When you leave it off, you delete the comment from the specified file or files. FileNote displays a message with the filename and the word "Done" whenever it creates a new comment. The QUIET/S option suppresses this message. The ALL/S option appends a comment to every file and directory in and be low the current directory that matches the FILE/A argument.

MakeDir: Creating Directories The most important reason for having a hierarchical file structure such as the one used by AmigaDOS is that it lets you organize your files in a logical man ner. You can group like files, and separate dissimilar ones. One of the most important commands in helping you achieve this goal is MakeDir. MakeDir is short for make directory; its purpose is to create a place where you can store files that share a similar function. The template of the MakeDir com mand is: NAME/M

The lone argument is simply the name of a directory you want to create. For example, to create a directory named DiskUtils in the Utilities directory of your system disk, you enter: MAKEDIR SYS:UTILITIES/Disk.Utils If you were already in the Utilities directory, you wouldn't need the absolute pathname for the new directory. You could simply enter: MAKEDIR DiskUtils

The /M modifier means you can create multiple directories with one MakeDir command by separating the names on the command line with spaces. Once you've created a directory, you can use it to store other files and directories. Giving your directories logical names and a logical organization makes work ing with your computer a lot easier.

Join: Concatenating Files The Join command lets you create a file by copying the contents of multiple files into the destination file. It has the following template: FILE/M,AS=TO/K/A


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.