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 23:10
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Internal command to external command View 2,653 Replies 18
Original Poster Posted 2006-11-08 09:56 ·  中国 黑龙江 佳木斯 电信
初级用户
Credits 47
Posts 19
Joined 2006-11-08 09:19
19-year member
UID 70019
Gender Male
Status Offline
How can I convert DOS internal commands into external commands? For example, turn REN into a separate file form?
Floor 2 Posted 2006-11-08 09:59 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
It is estimated that some experts can complete it through disassembling. Or use doskey to "escape" the original internal command, heh heh

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-11-08 10:00 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Why is this necessary???
第一高手 第二高手

Floor 4 Posted 2006-11-08 10:02 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Well~ For example, the expert electronixtar: P
第一高手 第二高手

Floor 5 Posted 2006-11-08 10:09 ·  中国 黑龙江 佳木斯 电信
初级用户
Credits 47
Posts 19
Joined 2006-11-08 09:19
19-year member
UID 70019
Gender Male
Status Offline
When debugging games, sometimes you need to rename files. But Internet cafes prohibit changing file extensions, so I thought of REN. Who knew he had tampered with it, and all DOS commands didn't exist at all?
Floor 6 Posted 2006-11-08 10:13 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Floor 7 Posted 2006-11-08 10:19 ·  中国 黑龙江 佳木斯 电信
初级用户
Credits 47
Posts 19
Joined 2006-11-08 09:19
19-year member
UID 70019
Gender Male
Status Offline
Floor 8 Posted 2006-11-08 10:20 ·  中国 黑龙江 佳木斯 电信
初级用户
Credits 47
Posts 19
Joined 2006-11-08 09:19
19-year member
UID 70019
Gender Male
Status Offline
Dizzy
Nowadays, the "Internet cafe - specific system" is not using DOSKEY to disable DOS
It seems that all DOS commands have been deleted
Floor 9 Posted 2006-11-08 10:26 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
It seems that the Chinese text "ren好办啊" is not a standard translatable content in the traditional sense here. The code part is in English already. So the overall output would be:

ren好办啊

#include <stdio.h>

int main(int argc, char* argv)
{
rename(argv,argv);

}
简单就是美
Floor 10 Posted 2006-11-08 10:29 ·  中国 黑龙江 佳木斯 电信
初级用户
Credits 47
Posts 19
Joined 2006-11-08 09:19
19-year member
UID 70019
Gender Male
Status Offline
Brother upstairs, may I ask how to use your code? I'm a newbie
Floor 11 Posted 2006-11-08 10:45 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Find a C language compiler for the Win32 platform to compile into an exe file, and it can be executed. Unfortunately, I don't have one at hand.
简单就是美
Floor 12 Posted 2006-11-08 10:53 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
A great person has appeared
第一高手 第二高手

Floor 13 Posted 2006-11-09 00:59 ·  中国 北京 怀柔区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Modify COMMAND.COM (for MS-DOS versions 6.22 and earlier) using PCTOOLS.
Find "DIR" and change it to "DDD" (here, "finding DIR" means finding the character "DIR" within the COMMAND.COM file).
As for where this character is located, you need to find it slowly using PCTOOLS (PCT).

Then, after modification, replace your current COMMAND.COM file.
(Rebooting, booting with a boot disk and then overwriting the command.com on the C system or directly overwriting the command.com on the boot disk is safe.)
Then typing "DIR" will be invalid, and typing "DDD" will have the original function of "DIR".
(I've done this before and it was successful. : ) The owner can just go ahead and modify it. : )

If the owner is proficient in Debug and assembly, then use Debug to modify it. : )

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

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 14 Posted 2006-11-09 01:18 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
As Brother redtek said, you can also modify it with UltraEdit~
第一高手 第二高手

Floor 15 Posted 2006-11-09 01:35 ·  中国 北京 怀柔区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Good idea~:)
Suggest letting the楼主 of chpavc modify for fun~:)
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Forum Jump: