![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-06 07:05 |
47,812 topics / 349,914 posts / today 0 new / 48,268 members |
| DOS启动盘 & LOGO技术 (启动盘室) » [Help] How to call a program on the CD from autoexec.bat? |
| Printable Version 1,565 / 7 |
| Floor1 nickolas | Posted 2003-05-21 00:00 |
| 中级用户 Posts 52 Credits 299 | |
|
I want to put a few lines in the autoexec.bat on a Win98 boot disk to call a program on the CD.
|
|
| Floor2 如是大师 | Posted 2003-05-21 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
First you need to set a variable. Then point it to the path where the program is located and you can call it.....
|
|
| Floor3 wglwx | Posted 2003-05-21 00:00 |
| 高级用户 Posts 187 Credits 616 | |
|
There is a simple way:
First assign a drive letter to the CD-ROM drive, then add the path. For example: If you want to use KV3000.EXE on the CD-ROM add /L:X to the end of the MSCDEX.EXE ...... line in autoexec.bat and finally add: X:\KV3000.EXE X can be replaced with some other letter. This method is simple, fast, and reliable, and saves the time of searching for the drive letter. |
|
| Floor4 Wengier | Posted 2003-05-21 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is quoted from wglwx at 2003-5-21 6:33:01: This method is not necessarily reliable either. For example, if the system already has an X: drive, then wouldn't it fail? |
|
| Floor5 MYS | Posted 2003-05-21 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
Yes, another way is to use FINDCD, then call %CDROM%\XXX.EXE, but with dual CD-ROM drives it becomes a bit troublesome, and at present there is still no good solution.
|
|
| Floor6 Wengier | Posted 2003-05-21 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is quoted from mys at 2003-5-21 7:21:01: Why is it troublesome with dual CD-ROM drives or multiple CD-ROM drives? Taking the FINDCD program I modified as an example, using FINDCD 2 can put the drive letter of the second CD-ROM drive into %CDROM%. |
|
| Floor7 nickolas | Posted 2003-05-21 00:00 |
| 中级用户 Posts 52 Credits 299 | |
|
Many thanks, experts!
|
|
| Floor8 minisheep | Posted 2003-05-21 00:00 |
| 高级用户 Posts 233 Credits 830 | |
|
Using Z is still more convenient! There are rarely more than 20 partitions, right! This way is simple to use! w's method is too specialized! You have to know that technology should be people-oriented!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |