I just started learning DOS recently and installed DOS 6.22. I found it had too few features and didn't support the CD-ROM drive or virtual disk, so I wanted to add those features myself. I only had a Win98 boot disk on hand.
After thoroughly studying what's inside it, I made an installation script myself.
I tested it in VMware. The method is to boot into DOS, load the uploaded floppy disk image, then type b.bat in drive A:. It will write files to drive C: by itself.
Take out the image and reboot, and that's it. The effect is pretty close to the 98 boot disk, and the menu colors are decent too. Everyone can give it a try.
Now let me talk a bit about what I learned and my experience making it:
The stuff in config.sys and autoexec.bat is relatively easy to change, basically just adding some CD-ROM and virtual disk drivers, changing some environment variables and so on.
The key thing I want to mention is setramd.bat and the variable LglDrv. This kept me busy for quite a while. In the original Win98 version it is:
LglDrv=27 * 26 z If your hard drive only has drive C:, an error will occur, and you'll get cdrom= as an empty result.
If LglDrv=26 z, then if the hard drive only has drive C:, cdrom=e RAMD=d, and no error will occur.
At :do_shift I set a breakpoint there, and after displaying cdrom I discovered the above result.
:do_shift
echo on
set cdrom=%2
echo %cdrom%
pause
shift
shift
Later I displayed how the values of %1 %2 ....%9 changed after every two shifts, and found that after shift reached 5 E, shifting again caused an error. I guessed it might be a problem with this DOS 6.22 version. You can set as many as 27 * 26 z .....3 c variables, but the variables effective for shift
are only 42 total, that is, up to 5 e. Everything after that gets discarded!!
This is my first post. I don't know how to upload attachments, so I'm just giving an address to download it from.
Finally I want to ask, how is the setup.exe program on the installation disk made? I want to integrate my image into it, but when I open dossetup.ini it turns out to be garbled text!!
In my space it's 1670.rar
http://upload.cn-dos.net/img/1670.rar
.
After thoroughly studying what's inside it, I made an installation script myself.
I tested it in VMware. The method is to boot into DOS, load the uploaded floppy disk image, then type b.bat in drive A:. It will write files to drive C: by itself.
Take out the image and reboot, and that's it. The effect is pretty close to the 98 boot disk, and the menu colors are decent too. Everyone can give it a try.
Now let me talk a bit about what I learned and my experience making it:
The stuff in config.sys and autoexec.bat is relatively easy to change, basically just adding some CD-ROM and virtual disk drivers, changing some environment variables and so on.
The key thing I want to mention is setramd.bat and the variable LglDrv. This kept me busy for quite a while. In the original Win98 version it is:
LglDrv=27 * 26 z If your hard drive only has drive C:, an error will occur, and you'll get cdrom= as an empty result.
If LglDrv=26 z, then if the hard drive only has drive C:, cdrom=e RAMD=d, and no error will occur.
At :do_shift I set a breakpoint there, and after displaying cdrom I discovered the above result.
:do_shift
echo on
set cdrom=%2
echo %cdrom%
pause
shift
shift
Later I displayed how the values of %1 %2 ....%9 changed after every two shifts, and found that after shift reached 5 E, shifting again caused an error. I guessed it might be a problem with this DOS 6.22 version. You can set as many as 27 * 26 z .....3 c variables, but the variables effective for shift
are only 42 total, that is, up to 5 e. Everything after that gets discarded!!
This is my first post. I don't know how to upload attachments, so I'm just giving an address to download it from.
Finally I want to ask, how is the setup.exe program on the installation disk made? I want to integrate my image into it, but when I open dossetup.ini it turns out to be garbled text!!
In my space it's 1670.rar
http://upload.cn-dos.net/img/1670.rar
.
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| DOSforever | +2 | 2009-08-28 09:52 |
