Aacini wrote:My PIPE.COM program is only 69 bytes in size, so it is a very good replacement of FINDSTR to be used in these cases. If you are worried about where to get my program from, here it is; just copy the 69 bytes below to a file named PIPE.COM and it is ready to run:
Not going to argue the merits of "inline executables", but I'd like to point that the line you quote is useless and even dangerous if you don't specify the active codepage you saved it under, and make it abundantly clear to the reader that they must 'chcp' to same codepage before pasting the text.
Issue here is that batch files are 8-bit text and, as such, they are affected by the active codepage. When one copies the line above from this page, which is Unicode-enabled, and pastes it into 8-bit text, the extended characters are converted/mapped based on the codepage being active at the time of pasting.
For example, the following generates 3 different text files on my (us-en) XP.
Code: Select all
Active code page: 437
C:\>echo copyright - ©©© >437.txt
Active code page: 850
C:\>echo copyright - ©©© >850.txt
Active code page: 1252
C:\>echo copyright - ©©© >1252.txt