After testing, I found that Win2K only executes commands in files like AUTOEXEC.BAT that begin with commands such as SET and PATH, so the solution is actually very simple: just add an extra instruction at the very beginning of that line. For example, change:
PATH=C:\DOS
to:
IF 1==1 PATH=C:\DOS
and then Win2K will not execute that command.
The reason Roy's method does not work is that as soon as Win2K sees a command other than SET or PATH (such as IF), it simply ignores it completely, so it is ineffective.
Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
