SWEEP TIP: MOVING FILES ........................................... Rick Ryall If you own a Kaypro with a hard disk, at some time you undoubtedly have wished to move files from user area to another. The way you probably did this in the past was to copy the files from one user area to the other and then delete the files from the first user area. Besides requiring the extra step of erasing the files after the move, it takes a pretty long time to copy the files, even with a hard disk. But, as you will soon discover, there is a better way. You can effectively move a file in NEWSWEEP by renaming it from one user area to another. This is possible because user areas are merely an illusion created by the operating system, and the only difference between a file in one user area and the same file that has been moved to another user area is the first byte of the directory entry on the disk (which is the user area number, or E5 hex if the file has been erased). What this means is that a file can be "moved" from one user area to another simply by changing the first byte of its directory entry. To use NEWSWEEP to accomplish this task, suppose that you wanted to move a file named FILENAME.EXT from user area 0 to user area 4. After pressing the "R" key to rename a file (assuming that you are already logged onto user area 0), you would get a prompt like this: New name, or *? To move the file you could type either of the following responses: 4:FILENAME.EXT or A4:FILENAME.EXT In the time it takes to rename the file, which is considerably less than copying and deleting it, the file will be moved. But what if you have a large number of files to move? Wouldn't it be faster to tag the files you were interested in, mass copy them all to the new user area, retag them, and delete them from the original user area than to rename them one at a time? Yes, this is true, but under certain circumstances you can take a renaming shortcut that is MUCH faster than copying the files. You access this shortcut by entering "*" as a filename after the rename prompt. This indicates that you wish to use wildcards in the renaming of the files, and another prompt will appear: Old name? You may then enter an ambiguous filename, like *.COM, which would allow you to rename (and therefore move) all the files that end with .COM. After entering the old name, another prompt will appear: New name? You may then enter the new filename for the files that are to be renamed. Note that you must enter an ambiguous new name if you entered an ambiguous old name, since it does not make any sense to rename all the files that end in .COM to one filename. Here is an example. Let's say that you wanted to move all the files from user area 1 to user area 13. The process would go something like this, with the things that you type enclosed in quotes: "R" New name, or *? "*" Old name? "*.*" New name? "13:*.*" That's all there is to it. You can use this feature whenever it is practical to use wildcards to describe the filenames, since renaming does not work on tagged files, and whenever you are moving files from one user area to another on the same disk drive (the only way to move files from one disk to another is to copy them).