home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
- Introducing FILEUTIL 2.0 Introducing FILEUTIL 2.0
-
- Looking at my QMODEM directory, I see all sorts of
- QMODEM utilities. LU, SQ, NUSQ and others. Some are pretty
- small like UNWS and ADDLF. Well, I thought it would be nice if
- I could throw together the latter two, add case conversion,
- have full support for sub-directories, allow back-ups, etc.
- That product's documentation you are reading right now. FILEUTIL
- is a fairly straightforward program. It's not too big, easy to
- use, and pretty much in the same format as the first three
- utilities I mentioned. Hope you can find some use for it.
-
- Executing FILEUTIL Executing FILEUTIL
-
- FILEUTIL be executed from any DOS prompt as long as
- FILEUTIL.COM is in the current sub-directory on in the DOS
- path (see DOS manual for a lousy but accurate description of
- PATHs). The format is:
-
- FILEUTIL param [param..] [dr:][\path\]filename
- [[dr:][\path\]outfile]
-
- param is one of the following:
- A Add linefeeds to the file;
- W Convert the file from WordStar's 8bit
- format to the standard 7 bit ASCII for-
- mat;
- U Convert all lowercase letters to upper-
- case;
- L Convert alluppercase letters to lower-
- case;
- R Remove extraneous carriage returns;
- Q Do not alter the case within
- quotes.
- [param] is one of the above parameters. Any number of
- parameters is allowed, except that both A and W
- cannot be specified at the same time, as well as
- U an L can't.
- [dr:] is an optional drive where the fileis to be found.
- [\path\] is an optional path to follow to find the file-
- name.
- filename is the name of the file to make the changes to.
- [outfile] is an optional output file or device. If not
- specified, output will go to the original filename and
- a file called filename.BAK will contain the old ver-
- sion. To output to the printer, user outfile PRN:, and
- CON: to direct to the console, etc.
-
- Typing illegal parameters or FILEUTIL ? will list out the
- options to the screen. An example. Say you've just downloaded
- this great TURBO Pascal library from a local RCP/M board and
-
-
-
-
-
-
-
-
-
-
- FILEUTIL 2 FILEUTIL
-
-
-
- the putz decided to format his documentation with WordStar. Say
- the name of the doc file is TBBS.DOC, to convert it to ASCII
- type:
-
- FILEUTIL w tbbs.doc
-
- It will then rename tbbs.doc to tbbs.bak and convert the
- file. This way, if you didn't want to do the change after
- all you still have the original. FILEUTIL will NOT make a
- backup of a backup!
-
-
- The options The options
-
-
- A (add linefeeds) A (add linefeeds)
-
- Sometimes you get a file from a bulletin board or off some-
- one else's disk that, when you TYPE it, it seems to print
- all the lines on top of one-another. This is because there
- are no linefeeds (ASCII character 10) to go along with the
- carriage returns (ASCII character 13). An example of this is
- say you call some board and download a BASIC program. A lot
- of BASICs decide, for some stupid reason, not to add linefeeds.
- This will help you out cleanly and quickly.
-
- W (convert WordStar to ASCII) W (convert WordStar to ASCII)
-
- Despite WordStar being a has-been program on the IBM PC
- (you still use it, huh? Well, I suggest you take a lok at
- Microsoft WORD) but still lingers a lot through CP/M. A lot of
- these guys think everyone in the world uses and has WordStar,
- so they make their documentation files in WordStar's weird
- format. This option will strip the strange characters and
- make it standard ASCII.
-
- R (remove extraneous carriage returns) R (remove extraneous carriage returns)
-
- Sometimes you may output a file or a screen or something
- that you want to edit in your wordprocessor and format, etc.
- Well, more often than not, the tranfer file has carriage returns
- after each line instead of after each paragraph. The R option
- strips all carriage returns and adds a space except if the next
- character is a carriage return or a tab.
-
- L (convert to lower case) L (convert to lower case)
-
- Sometimes you may actually call an Apple Bulletin Board, or
- maybe have a C program or two that look nicer in lowercase.
- This utility will change the case for you.
-
-
-
-
-
-
-
-
-
-
-
-
- FILEUTIL 3 FILEUTIL
-
-
-
- U (convert to upper case) U (convert to upper case)
-
- Can't really describe the usefulness of this, but with
- lower case conversion, thought it best to throw it in.
-
- Q (don't change string within quotes) Q (don't change string within quotes)
-
- If you're using FILEUTIL on program file you will usually
- not want to switch characters inside quotes as they are either
- strings or comments. If turned on that text will not be al-
- tered. The program considers an end-of-line the same as ter-
- mination of a quote (since in assembler you use the ' to start a
- comment but don't put a terminator. EOLN is the terminator).
-
-
- The FILEUTIL package The FILEUTIL package
-
- The following programs should have been in FILEUTIL.LBR
- (the distribution package):
-
- FILEUTIL.COM The program
- FILEUTIL.PAS The Turbo Pascal source
- FILEUTIL.DOC What you're reading
-
- FILEUTIL is placed in the Public Domain for all you people
- to play around with and hopefully get some use out of. This is
- vital since there are so many bogus programs out there that do
- the same as FILEUTIL or less but cost $30 to $50. That is stupid
- for such an easy program as this.
- That's about all that I can think of. This is the
- third product out of Sarcastic Software (the others were Sar-
- castic Software
- LISTER.LBR which would format BASIC listings, and
- HELPFAST.LBR which added some freindly features to PC-TALK).
- If you have any comments, suggestions or bugs, contact:
-
- Chris Rowley
- 11808 Canfield Rd.
- Potomac, MD 20854
- (301) 762-8486 (voice)
- (301) 340-0246 (data)
- (301) 340-8484 (work)
- (301) 340-1376 (work data)
-
- (c)1985 Sarcastic Software by Chris Rowley
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-