COPYDESC version 1.02 Copyright (C) 1992 by Jim Robeson 11/15/92 Function: Read a PCBoard DIR LIST file (arg-1), and copy it to a file (arg-2), changing all multi-line descriptions to "long lines". with the output position of the '|' set in arg-3, and the starting position of the text set in arg-4. note: requirment: 1 < arg-3 < arg-4 <= 34 Other uses: None. Execution: Run from command line or .BAT: COPYDESC drv:\path\in-file-name drv:\path\out-file-name |pos txtpos If run without arguments, a bit of help appears. To test: See the file TESTID.BAT, it is set up to read DIR.IN and create DIR.OUT, with the '|' character in column 2 and the secondary descriptions starting in column 5. Notes: This version will blow up if more than 39-40 lines are found in any single file description. If a "hang" is experienced, check the input file for really long descriptions. You could lower the number of lines! If I continue to modify this, I will add a test for this condition. Meanwhile, now you know too! The test for the "first-line" of a description includes: a numeric in column 21, a '-' in each of 26 & 29, and an "acceptable" DOS filename character in column 1. If all 3 of the above conditions are met in any given line, the program will assume that the line is the first line of a new description. If a description is entirely ignored (not reformatted), or is merged into the previous description, a check for those conditions will probably show the reason. BTE, the '&' is not acceptable to me, even if DOS allows it part of the time! Oh yes, BTW, the description data in line one is NOT re-packed, it is taken as-is. Words might get added to line 1, though. Disclaimer: This program is contributed to the Public Domain. It can be freely used, modified and/or distributed by anyone. The only thing I ask is that you remember that I am not responsible for anything that might go wrong through the use of this program. I have tested the program enough for my own use. I also realize that bugs can appear in most every program. Therefore, YOU USE THIS PROGRAM AT YOUR OWN RISK. Enjoy, Jim Robeson The Cricket BBS, Pacific Grove CA, 408-373-3773