开发者

Renaming MS-DOS internal commands

开发者 https://www.devze.com 2023-04-08 22:46 出处:网络
Is it possible by any means to rename the internal commands of DOS? Firstly, I am doing this to learn a bit about the internals and possibilities of DOS. So far I have changed the internal command CLS

Is it possible by any means to rename the internal commands of DOS? Firstly, I am doing this to learn a bit about the internals and possibilities of DOS. So far I have changed the internal command CLS to X开发者_JAVA技巧LX (on Windows XP). But the command name XLX isn't executing. I am attaching 2 screenshots for the reference. Above everything else, this whole activity is just my curiosity.

Renaming MS-DOS internal commands

Renaming MS-DOS internal commands


That shell you're running isn't DOS and it isn't command.com; as the window title indicates, it's cmd.exe which is a different program entirely. Your changes might actually work if you were running the DOS command interpreter — which might or might not be as easy as just running command from the cmd shell.


It looks like you have only changed the string containing documentation about the CLS command. I would suspect that there is another "CLS" string somewhere.

It is difficult to know for sure because command.com is closed source software. One thing you could do is use debug or another debugger (ollydebug is a free GUI debugger) to trace out what happens when you run CLS and find the conditional jump where command.exe decides to perform the cls command.


COMMAND will try to run CMD's internal commands, at least on Vista. To see the difference try starting COMMAND, and then the command VER. COMMAND /C VER will give a different result, so if you did it right you should try "COMMAND /C XLX". I have no idea if that will work or not.


changing the internal command mgiht cause danger to yoiur registry content.. so i suggest you to oerform your experiment after having a backup of your data or on a virtual machine is most preferable as per my experience..

0

精彩评论

暂无评论...
验证码 换一张
取 消