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 09:55
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to prevent doskey.com from being unloaded from memory View 3,019 Replies 33
Original Poster Posted 2006-02-20 21:06 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
How to prevent doskey.com from being unloaded from memory? Please, great experts, give me some advice. Thanks!
Floor 2 Posted 2006-02-21 11:07 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
doskey seems to have no uninstall function itself, just like smartdrv
Floor 3 Posted 2006-02-21 11:15 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
doskey -u can unload doskey from memory

doskey -R can reload doskey from memory

Now the question is: How to make the "doskey -u" command invalid?
Floor 4 Posted 2006-02-21 11:25 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Which version of DOS's doskey are you talking about?
Floor 5 Posted 2006-02-21 13:07 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
DOS version:
Windows Millennium [Version 4.90.3000]
Floor 6 Posted 2006-02-21 13:09 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
This doskey.com is extracted from the MS-DOS 7.1 image file, it should be the 7.1 version. After trial, it can also be applied in the Windows Millennium [Version 4.90.3000] DOS version
Floor 7 Posted 2006-02-21 15:08 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Strange, my doskey doesn't have this parameter. Probably yours is developed by a third party
Floor 8 Posted 2006-02-21 15:11 ·  中国 江西 抚州 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
Open Doskey.exe file in binary with Edit.com and change the -u parameter to other characters
Floor 9 Posted 2006-02-21 16:18 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
Under the WINXP environment, how to modify Doskey with HexEdit, that is, how to visually find the -u command
Floor 10 Posted 2006-02-21 16:53 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re martin325:

The doskey.com in MS-DOS 7.10 is indeed a third-party tool, an enhanced version written by Paul Houle, which can be found out by using doskey /? | more. For the doskey versions of MSDOS 6.22 and below, Windows 9x and above, which are from Microsoft themselves, there are no uninstall parameters.

As for finding the location of the command-line parameters for doskey in DOS/Win, this must be determined through trace debugging using a debugging tool. It cannot be known through ordinary searching methods. That is, simply using edit / hexedit cannot achieve the prohibition of the /u parameter unless its address is already known.

In addition, it should be reminded that even if doskey always resides in memory, it cannot prohibit the addition, modification, and deletion of doskey macro commands. Therefore, the disabling of write commands implemented by doskey can be easily lifted.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 11 Posted 2006-02-22 09:51 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
Where can I find a download for DOSKEY without the uninstall parameter?
And this DOSKEY is applicable for use in the Windows Millennium [Version 4.90.3000] DOS version.
Please help, big shot :)
Floor 12 Posted 2006-02-22 09:59 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
If doskey always resides in memory, how to remove the addition, modification, and deletion of the forbidden doskey macro commands?
Floor 13 Posted 2006-02-22 13:14 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
Excuse me, expert on the 7th floor, can you upload your Doskey?
Floor 14 Posted 2006-02-22 13:41 ·  中国 山西 临汾 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re martin325:

DOSKEY should be present in all Windows versions and most MS-DOS versions. It's just that the doskey.com under MS-DOS has version restrictions, and the 32-bit doskey.exe under WinNTs can't run under 16-bit MS-DOS. Doesn't your WinME have doskey.com? Then you can try doskey.com under Win98?

Creating, modifying, and deleting DOSKEY macros is very simple, similar to environment variable setting statements like set.

Create or modify: doskey del=none
Delete: doskey del=

As for what you call "removing", I understand it as prohibiting the operation of the doskey command, which is usually more complicated. But there is also a tricky way: doskey doskey=cls, which also prohibits the doskey command, so you can't use doskey at the command line, and naturally you can't modify and delete macro commands.

Of course, "the way is one foot high, the devil is ten feet high", this trick can also be easily broken, and there are more than one solution (already got 4 kinds), but fewer people know it. Here, it can be used as a guessing question. Let the high-level experts express their opinions and see if they can get answers different from what I have in mind.

[ Last edited by willsort on 2006-2-22 at 13:47 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 15 Posted 2006-02-22 14:29 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Haha, I don't know what "high-level expert" mentioned by Xiaotian means by "high level" and what kind of person a "expert" is.

After reading your prize-free quiz. I roughly point out, let's see if we think of the same thing

space
batch
ren
alt-

Originally I just thought that martin325 playing this kind of "encryption" is not very interesting, but it's also interesting for everyone to communicate and exchange skills together. Haha
Forum Jump: