China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-30 21:50
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Internal command to external command View 2,651 Replies 18
Floor 16 Posted 2006-11-09 01:55 ·  中国 北京 怀柔区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Hehe……It's done:)

The original internal commands REN and RENAME for renaming file names have been modified to: RRR and RRRRRR. It's too troublesome to change to other letters and have to convert to hexadecimal. Who made REN's R be 52 in hexadecimal? Copy six 52s in one go, ha……

(Modified version: MS-DOS 6.22)

Here are the internal commands REN and RENAME:

-D C230
0B3B:C230 52 52 52 52 52 52 03 89-20 75 9A 03 52 52 52 03 RRRRRR.. u..RRR.
0B3B:C240 89 20 75 9A 05 45 52 41-53 45 03 01 20 29 9A 03 . u..ERASE.. )..
0B3B:C250 44 45 4C 03 01 20 29 9A-04 54 59 50 45 03 37 21 DEL.. )..TYPE.7!
0B3B:C260 8B 9A 03 52 45 4D 06 04-01 A1 9A 04 43 4F 50 59 ...REM......COPY
0B3B:C270 03 6D 3E 0D 9A 05 50 41-55 53 45 06 F4 1F A5 9A .m>...PAUSE.....
0B3B:C280 04 44 41 54 45 02 6E 35-23 9A 04 54 49 4D 45 02 .DATE.n5#..TIME.
0B3B:C290 D7 35 85 9A 03 56 45 52-02 61 23 8F 9A 03 56 4F .5...VER.a#...VO
0B3B:C2A0 4C 03 65 22 97 9A 02 43-44 03 21 2B 01 9A 05 43 L.e"...CD.!+...C
-Q



The two DOS internal commands REN and RENAME are located in COMMAND.COM of the MS-DOS 6.22 version:

DEBUG COMMAND.DAT
-E C230 52 52 52 52 52 52
-E C23C 52 52 52
-W
-Q


-E C230 52 52 52 52 52 52 corresponds to the internal command: RENAME

(-E C230 "REDTEK" )
(It's the same if you directly write if converting ASCII to hexadecimal is troublesome, as above)

-E C23C 52 52 52 corresponds to the internal command: REN

[ Last edited by redtek on 2006-11-9 at 02:29 AM ]
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 17 Posted 2006-11-09 02:00 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Floor 18 Posted 2006-11-09 02:11 ·  中国 北京 怀柔区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Operation screenshot, very funny operation interface~:)
Attachments
1.jpg
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 19 Posted 2006-11-15 07:14 ·  中国 浙江 宁波 电信
中级用户
★★
Credits 300
Posts 137
Joined 2005-11-04 02:00
20-year member
UID 44559
Gender Male
Status Offline
Originally posted by chpavc at 2006-11-8 10:20:
Confused
Nowadays, "Internet cafe special systems" are not using DOSKEY to disable DOS
It seems that all DOS commands have been deleted


Download a CMD file yourself and execute it, then you can use the DOS command REN.
Forum Jump: