KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q38855: Use of CRLF.EXE

Article: Q38855
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): enduser | | mspl13_c
Last Modified: 17-JAN-1989

The QuickC editor has the following restrictions on the files it
can edit:

1. All lines must be terminated by a carriage return (CR) followed
   by a line feed (LF)--ASCII codes 0x0D/0x0A.

2. Character 0 is not allowed. All other characters in the
   range 1 to 255 are allowed.

The editor specifically handles CR (0x0D), LF (0x0A), and HT (0x09).
Because other control characters may be undesirable, CRLF allows you to
optionally change control characters to a specified character
or to simply remove them. The syntax is as follows,

   crlf <infile> <outfile> [/c<ascii>]

where <infile> is the file to be translated, <outfile> is the new
translated file, and <ascii> is the ASCII code for the character
to which control characters (except CR, LF, and HT) will be translated.
The ASCII code may be entered in decimal (ddd), octal (0ddd), or
hexadecimal (0xddd).

For example, /c32 will translate all control characters to spaces. If
<ascii> is given as 0, control characters will be removed rather than
translated. If /c is not given, the program will prompt for
translation characters.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.