home *** CD-ROM | disk | FTP | other *** search
- PECHO - Copyright 1991; All rights reserved. Created by Edward W. Jajko.
- Version 1.1
-
- The docs for this program should be small; the only people who will understand
- how to use this program already know PRINTF and C constant syntax.
- Run the program without any arguments and the following will appear:
-
- ╔═════════════════════════════════════════════════════════════════════════╗
- ║ PECHO - Printf version of msdos ECHO command with C extended characters ║
- ║ Created 8/11/1991 by Edward W. Jajko ║
- ║ All rights reserved. ║
- ║ This program may not be sold under any circumstances. ║
- ║ Report bugs/suggestions to ejajko@nike.calpoly.edu ║
- ║ ║
- ║ Usage: PECHO [declarations] string... ║
- ║ where "string..." can contain spaces. ║
- ║ ║
- ║ options: /b#[###...] use binary number #[###...] ║
- ║ /o#[###...] use octal number #[###...] ║
- ║ /d#[###...] use decimal number #[###...] ║
- ║ /h#[###...] use hexidecimal number #[###...] ║
- ║ where each number is used in the order presented on the command line. ║
- ║ ║
- ║ Any legal printf format string is acceptable. ║
- ║ To use environmental or batch command line variables, include ║
- ║ them in the string as you would for any other action. ║
- ║ EX: "integer %mine%: %d" ║
- ║ If problems occur using the % sign, use \045 instead. ║
- ╚═════════════════════════════════════════════════════════════════════════╝
-
-
- .,;*************;,.
- ***HELPFUL INFORMATION***
- `'"*************"'`
-
- Those C constants already supported:
- \a bell \b backspace
- \f form feed \n newline (carriage+linefeed)
- \r carriage return \t tab
- \v vertical tab \' single quote
- \" double quote \\ backslash
- \ddd octal number \0 ASCII NULL
- \? question mark
-
- Quick rundown on PRINTF() numerical syntax: (not everything, though!)
- overall format:
- %[flags][width][conversion chars]
- flags:
- - left justification
- + signed conversions
- width:
- w width in characters
- * take width from argument list (next number)
- conversion characters:
- %d decimal
- %c character
- %o octal
- %x hexidecimal (lowercase ABCDEF)
- %X hexidecimal (uppercase ABCDEF)
-
- NOW, THE BAD NEWS:
- The interface is extremely simple: I didn't add floating point or mathematical
- expression support; only numebers up to 65535 can be used (%ld can be used, but
- only by combining two bytes together, such as "pecho /d255/d255 %ld").
- All in all, this program is exactly as I desgined it (besides the bug fixes,
- of course): a cheap, simple DOS 'echo' clone that allows things like appending
- text to files without return sequences and number conversions.
-
- NOW, THE GOOD NEWS: (sort of)
- I don't think this program is worth anything; use it and keep you piece of
- mind. If you feel guilty about getting something for free, send me a thank-you
- note over the Internet. You can even put a few ASCII drawn flowers at the
- bottom.
-
- Well, that's it. Remember:
- SUGGESTIONS???
- COMPLAINTS??? (on second thought, don't...)
-
- email me at 'ejajko@nike.calpoly.edu'. ALL helpful input accepted.
- (Flames, etc... incinerated.)
-
-
- .,;**************;,.
- ***HISTORY OF THE THING***
- `'"**************"'`
-
- Version:
- 1.0 first release
- 1.1 minor bug fix ('\\' was neglected)
-
-