) First method:
Using the ECIT.COM editor built into MS-DOS (also available in WINDOWS CMD SHELL) to enter special control characters.
Enter EDIT.COM, press the CTRL+P combination key, and then you can enter special characters:
For example: The ASCII code of the backspace key (to move the cursor to the left) is 08,
Then you can press ALT+08 (hold down the ALT key, then press the 0 and 8 keys on the right small keyboard, release the ALT key after both are entered.
Note: CTRL+P is only effective once. If you enter the second control character, you have to press CTRL+P again
) Second method: Get it with Debug
-D
0AF5:0100 20 20 20 20 20 0D 0A 20-20 20 20 0D 0A BA 8C 8A . .. .....
0AF5:0110 73 03 E9 4E FF 2B C8 74-D0 F6 06 15 34 00 E4 0A s..N.+.t....4...
0AF5:0120 F6 06 15 99 20 75 0A 80-3E D2 99 00 75 BB 49 74 .... u..>...u.It
0AF5:0130 B8 BA 0D 8C EB 23 33 D2-87 D1 B8 01 42 CD 21 A3 .....#3.....B.!.
0AF5:0140 DF 99 89 16 E1 99 80 3E-C5 96 00 74 9C B4 40 CD .......>...t..@.
0AF5:0150 21 72 5F C6 06 E3 99 1A-C3 E8 FF 0F FE 06 D2 96 !r_.............
0AF5:0160 80 3E D1 96 00 74 48 8B-1E 13 99 83 FB 00 7E 33 .>...tH.......~3
0AF5:0170 8B 0E E1 99 8B 16 DF 99-8B C1 0B C2 74 21 B8 00 ............t!..
-E 100
0AF5:0100 20.08
-W
Writing 0000D bytes
-Q
) For special control characters like backspace, if you enter ALT+08 directly on the command line, it will "execute" immediately, which is equivalent to you pressing the backspace and deleting the content on the left.
So, it is more convenient to enter it indirectly in edit.com or other ways.
) For 07 (ringing bell), you can enter GTRL+G or ALT+07 on the command line.
) For other control characters, refer to the ASCII code table
Refer to the following post for more detailed content...
DOS Learning Introduction & Wonderful Articles (Teaching Room) » ASCII Code Table and Meaning
http://www.cn-dos.net/forum/viewthread.php?tid=1641&fpage=1&highlight=ascii%E7%A0%81
[
Last edited by redtek on 2006-10-31 at 01:30 AM ]
Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._