Short: Move files in DL to local Aminet mirror Author: Kenneth.Nilsen@riksnett.no (Kenneth Christopher Nilsen) Uploader: Kenneth.Nilsen@riksnett.no (Kenneth Christopher Nilsen) Version: 1.1 Type: disc/misc Replaces: disc/misc/MTM* Requires: kick 2 or better MoveToMirror 1.1 (1.2.97) *NEWS*: Clone option added (date/protectionbits/comment) + bugs fixed! ALSO: See HISTORY at bottom of file. This program is FREEWARE! This tool is used locally to move the files you have in your download directory to a local Aminet mirror on your harddisk. The program uses the *.readme files and the "Type:" field to determine where to put the files. If drawer(s) don't exists MTM will create them when needed. The program is written in assembler using NewStartup for speed and size. USAGE: MoveToMirror [sourcedir] [destdir] [-v] [-r] [-d] [-c] sourcedir - copy from this directory (files and/or .readme) destdir - copy to this root dir (+ type:) -v - verbose actions -r - do not copy readme files to destdir -d - delete source files after a successful copy (move) -c - clone date/protection-bits/comment Example: We have two files in our download directory: MTM_1.1.lha MTM_1.1.readme We set: MoveToMirror download: download:Aminet/ -v -d -c The MTM will then search for .readme files and search for a 'type:' field. If found it will try to lock the Download:Aminet/disk/misc. If the dirs aren't found MTM will create the directories and copies the two files into download:Aminet/disk/misc/ The verbose output will look like this: > MoveToMirror.readme -> disk/misc (mkdir) (mkdir) - Moving - Ok! Note: The file *.lha is also moved/copied. The files can also end with anything else than *.lha. Since we use the '-c' option it will also clone the date, protection bits and the comment (if any). MTM does error checking in most cases so you will get message in verbose mode and more fatal errors in non-verbose mode as well. Readme files that doesn't have the type line will be left in the download directory untouched with owner file. For bug reports and/or wishes (options perhaps) contact me via e-mail: kennecni@IDGonline.no HISTORY: 1.1 (01.02.97) - Added CLONE (-c) option Bug: was case sensitive to "Type:". Fixed! Bug: FIB wasn't LONG word aligned (only WORD). Fixed! Bug: In non-verbose mode errors on 'type: not found' in readme file didn't print name on file. Fixed! 1.0 (25.12.96) - Main release 0.2ß (25.11.96) - Rewrote algoritms for moving files, creating dirs etc. - 0.1ß Caused a yellow alert on some machines - Better error checking and outputing - Seem to work fine here. 0.1ß (22.11.96) - Initial beta release --- Kenneth Christopher Nilsen kenneth.nilsen@riksnett.no - *email* *** comming up *** - *url* Only two things are for sure: taxes and death. Unfortunately they come in the wrong succession. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 5320 2381 55.2% 01-Feb-97 17:57:40 MoveToMirror 2699 1334 50.5% 01-Feb-97 17:56:52 MoveToMirror.readme -------- ------- ----- --------- -------- 8019 3715 53.6% 01-Feb-97 23:19:04 2 files