Learning DOS is useless??? You're wrong. DOS is the foundation of computers. Sometimes, if you don't understand DOS, you'll be at a loss when encountering some problems. If you know a little about DOS, then the following problem will be easy to handle.
Windows has developed to the present, and it seems to gradually get away from DOS. Windows ME has no DOS mode, and Windows 2000, Windows NT, Windows XP are even more so. But actually, they still came along the path of DOS.
Windows ME can be patched to retrieve the DOS mode hidden by "Bill the B@stard".
For systems like Windows 2000, at least the installation requires using DOS, right?! (Some people say that it can be installed under Windows systems like Windows 98?!) Oh, then where was its Windows 98 installed? It was still DOS!
Moreover, the following problem was perfectly solved under DOS. So, DOS is very important.
Problem: How to quickly restore the Windows 2000 (or XP) boot menu?
Many people like to install dual systems, Windows 98 (C drive) + Windows 2000 (D drive). When reinstalling Windows 98 (referring to the complete reinstallation method of formatting the C drive), you can't return to the boot menu of Windows 2000.难道 reinstall Windows 2000 again? Or some articles say that you can also find back the boot menu of Windows 2000 without completely reinstalling Windows 2000. But the incomplete reinstallation also takes a long time. (I don't adopt this method, so I won't explain it much. If you are interested, you can find relevant information by yourself to know why I say so.)
Solution:
Use this small batch file I made under DOS, which can be done in a few seconds! The specific operations are as follows:
1. Enter the w2k directory (you can run it directly on the CD or copy it to your hard drive and run it), and run setup.bat
2. If it prompts that smartdrv.exe is not loaded and asks if you want to continue, press Enter and select continue! (Don't pay attention to it. We don't plan to install Windows 2000 and don't need to copy too large files. It's okay not to install it. But if you want to install Windows 2000, you must load smartdrv.exe first, otherwise the installation time will be so long that you'll want to cry!!!)
3. If it prompts that disk1 or something is not found, also don't pay attention to it, press Enter. Still not working? Press F3 twice to exit. (Failed? No, it's fine. What we want it to do, it has already done. It has nothing to do with it anymore. Why stay in it if you don't exit?)
4. After exiting, it will restart the computer.
5. You see, the boot menu of Windows 2000 is back, right?
6. Since I'm using the English version of Windows 2000, so that winnt.exe is in English interface. You can find the Chinese version of winnt.exe, ntldr, ntdetect.com to replace it by yourself, and add the bootfont.bin file, and it will be in Chinese interface.
7. The boot.ini file I used is applicable to the situation of Windows 98 (C drive) + Windows 2000 (D drive).
If your Windows 2000 is installed in drive E or F, please change it yourself:
If installed in drive E, change all partition(2) in boot.ini to partition(3)
If installed in drive F, change all partition(2) in boot.ini to partition(4)
If your Windows 2000 is installed in drive C or D of the second hard drive, please change it yourself:
If installed in drive C of the second hard drive, change rdisk(0)partition(2) all to rdisk(1)partition(1)
If installed in drive D of the second hard drive, change rdisk(0)partition(2) all to rdisk(1)partition(2)
And so on... Note that you should change the number after RDISK, not the number after DISK! Don't change it wrong!!!
8. If it's Windows XP, just copy ntldr and ntdetect.com under Windows XP over and modify boot.ini, don't use winnt.exe under Windows XP, otherwise it won't install.
Thus, even the latest version of Windows, XP, is also inseparable from DOS...
If you don't understand DOS, then you'll go to pain! Hehe...
Attachment 1: File list
ATTRIB.COM --Tool to modify file attributes
BOOT.INI --Boot menu
DOSNET.INF --A file required for Windows 2000 installation
NTDETECT.COM --A file required for Windows 2000 startup
NTLDR --A file required for Windows 2000 startup
SETUP.BAT --The batch file I made
SHUTDOWN.COM --Soft shutdown tool
TDEL.EXE --Enhanced DEL command
WINNT.EXE --Windows 2000 installation program
Note: The several DOS enhanced tools used here can be found in my FTP, or in the New DOS Paradise (a beautiful new DOS era) (http://www.cn-dos.net/newdos/dosmain.html or http://wendos.my163.com/).
Attachment 2: Content of boot.ini file:
Timeout=3
Default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Server"
C:\="Microsoft Windows"
Attachment 3: Content of setup.bat file
@echo off
copy ntldr c:\>NUL
copy ntdetect.com c:\>NUL
winnt
attrib -h -s -r -a c:\boot.ini>NUL
tdel c:\$win_nt$.~bt/s/y/q
tdel c:\inf000.swp/y/q
copy boot.ini c:\>NUL
shutdown -r
Windows has developed to the present, and it seems to gradually get away from DOS. Windows ME has no DOS mode, and Windows 2000, Windows NT, Windows XP are even more so. But actually, they still came along the path of DOS.
Windows ME can be patched to retrieve the DOS mode hidden by "Bill the B@stard".
For systems like Windows 2000, at least the installation requires using DOS, right?! (Some people say that it can be installed under Windows systems like Windows 98?!) Oh, then where was its Windows 98 installed? It was still DOS!
Moreover, the following problem was perfectly solved under DOS. So, DOS is very important.
Problem: How to quickly restore the Windows 2000 (or XP) boot menu?
Many people like to install dual systems, Windows 98 (C drive) + Windows 2000 (D drive). When reinstalling Windows 98 (referring to the complete reinstallation method of formatting the C drive), you can't return to the boot menu of Windows 2000.难道 reinstall Windows 2000 again? Or some articles say that you can also find back the boot menu of Windows 2000 without completely reinstalling Windows 2000. But the incomplete reinstallation also takes a long time. (I don't adopt this method, so I won't explain it much. If you are interested, you can find relevant information by yourself to know why I say so.)
Solution:
Use this small batch file I made under DOS, which can be done in a few seconds! The specific operations are as follows:
1. Enter the w2k directory (you can run it directly on the CD or copy it to your hard drive and run it), and run setup.bat
2. If it prompts that smartdrv.exe is not loaded and asks if you want to continue, press Enter and select continue! (Don't pay attention to it. We don't plan to install Windows 2000 and don't need to copy too large files. It's okay not to install it. But if you want to install Windows 2000, you must load smartdrv.exe first, otherwise the installation time will be so long that you'll want to cry!!!)
3. If it prompts that disk1 or something is not found, also don't pay attention to it, press Enter. Still not working? Press F3 twice to exit. (Failed? No, it's fine. What we want it to do, it has already done. It has nothing to do with it anymore. Why stay in it if you don't exit?)
4. After exiting, it will restart the computer.
5. You see, the boot menu of Windows 2000 is back, right?
6. Since I'm using the English version of Windows 2000, so that winnt.exe is in English interface. You can find the Chinese version of winnt.exe, ntldr, ntdetect.com to replace it by yourself, and add the bootfont.bin file, and it will be in Chinese interface.
7. The boot.ini file I used is applicable to the situation of Windows 98 (C drive) + Windows 2000 (D drive).
If your Windows 2000 is installed in drive E or F, please change it yourself:
If installed in drive E, change all partition(2) in boot.ini to partition(3)
If installed in drive F, change all partition(2) in boot.ini to partition(4)
If your Windows 2000 is installed in drive C or D of the second hard drive, please change it yourself:
If installed in drive C of the second hard drive, change rdisk(0)partition(2) all to rdisk(1)partition(1)
If installed in drive D of the second hard drive, change rdisk(0)partition(2) all to rdisk(1)partition(2)
And so on... Note that you should change the number after RDISK, not the number after DISK! Don't change it wrong!!!
8. If it's Windows XP, just copy ntldr and ntdetect.com under Windows XP over and modify boot.ini, don't use winnt.exe under Windows XP, otherwise it won't install.
Thus, even the latest version of Windows, XP, is also inseparable from DOS...
If you don't understand DOS, then you'll go to pain! Hehe...
Attachment 1: File list
ATTRIB.COM --Tool to modify file attributes
BOOT.INI --Boot menu
DOSNET.INF --A file required for Windows 2000 installation
NTDETECT.COM --A file required for Windows 2000 startup
NTLDR --A file required for Windows 2000 startup
SETUP.BAT --The batch file I made
SHUTDOWN.COM --Soft shutdown tool
TDEL.EXE --Enhanced DEL command
WINNT.EXE --Windows 2000 installation program
Note: The several DOS enhanced tools used here can be found in my FTP, or in the New DOS Paradise (a beautiful new DOS era) (http://www.cn-dos.net/newdos/dosmain.html or http://wendos.my163.com/).
Attachment 2: Content of boot.ini file:
Timeout=3
Default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Server"
C:\="Microsoft Windows"
Attachment 3: Content of setup.bat file
@echo off
copy ntldr c:\>NUL
copy ntdetect.com c:\>NUL
winnt
attrib -h -s -r -a c:\boot.ini>NUL
tdel c:\$win_nt$.~bt/s/y/q
tdel c:\inf000.swp/y/q
copy boot.ini c:\>NUL
shutdown -r
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器

DigestI



