|
chpavc
初级用户
 
积分 47
发帖 19
注册 2006-11-8
状态 离线
|
『楼 主』:
内部命令TO外部命令
使用 LLM 解释/回答一下
怎样才能把DOS的内部命令转换为外部命令?
比如把REN变成单独的文件形式?
How can I convert DOS internal commands into external commands? For example, turn REN into a separate file form?
|
|
2006-11-8 09:56 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
估计某些牛人可以通过反汇编完成。或者用doskey来把原来的内部命令“转义”了,呵呵
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'>" |
|
2006-11-8 09:59 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-11-8 10:00 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-11-8 10:02 |
|
|
chpavc
初级用户
 
积分 47
发帖 19
注册 2006-11-8
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
调试游戏的时候有时需要重新命名文件,可是网吧禁止改扩展名,于是想到了REN,谁知道他又做了手脚,DOS的命令全不存在啊
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?
|
|
2006-11-8 10:09 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-11-8 10:13 |
|
|
chpavc
初级用户
 
积分 47
发帖 19
注册 2006-11-8
状态 离线
|
|
2006-11-8 10:19 |
|
|
chpavc
初级用户
 
积分 47
发帖 19
注册 2006-11-8
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
晕了
现在的“网吧专用系统”可不是用DOSKEY来禁用DOS的
好像是把DOS命令全删除了似的
Dizzy
Nowadays, the "Internet cafe - specific system" is not using DOSKEY to disable DOS
It seems that all DOS commands have been deleted
|
|
2006-11-8 10:20 |
|
|
Michael
钻石会员
       
积分 10046
发帖 3039
注册 2002-11-11
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
ren好办啊
#include <stdio.h>
int main(int argc, char* argv)
{
rename(argv,argv);
}
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);
}
|

简单就是美 |
|
2006-11-8 10:26 |
|
|
chpavc
初级用户
 
积分 47
发帖 19
注册 2006-11-8
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
楼上的大哥,请问你的代码该怎么用啊?
我是才鸟啊
Brother upstairs, may I ask how to use your code? I'm a newbie
|
|
2006-11-8 10:29 |
|
|
Michael
钻石会员
       
积分 10046
发帖 3039
注册 2002-11-11
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
找个win32平台的C语言编译器编译成exe文件就可以执行了。可惜我手边没有。
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.
|

简单就是美 |
|
2006-11-8 10:45 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-11-8 10:53 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
用PCTOOLS改COMMAND.COM(MS-DOS 6.22及以前版本),
找到DIR,然后改成DDD(这里说的找到DIR是指找到COMMAND.COM文件内的DIR这个字符),
至于这个字符在哪里,需要使用PCTOOLS(PCT)自己慢慢找。
然后修改完后替换掉你现在的这个COMMAND.COM文件,
(重启、用引导盘启动再覆盖C系统上的command.com或直接覆盖引导盘上的command.com安全),
然后再键入DIR就无效了,键入DDD就等于原DIR的功能了。
(以前这么玩过,成功:) 楼主尽管改着玩吧:)
如果楼主Debug和汇编精通的话,那就用Debug改吧:)
Last edited by redtek on 2006-11-9 at 01:35 AM ]
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,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-9 00:59 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-11-9 01:18 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
好主意~:)
建议让chpavc楼主改着玩~:)
Good idea~:)
Suggest letting the楼主 of chpavc modify for fun~:)
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-9 01:35 |
|