![]() |
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-15 02:50 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS软件下载 & 游戏分享 (下载室) » Can someone help me out...... |
| Printable Version 2,031 / 9 |
| Floor1 hyy | Posted 2003-02-24 00:00 |
| 初级用户 Posts 7 Credits 124 | |
|
I ran into a difficult problem while writing a boot floppy batch file: I originally wanted to load a path from the CD, but during testing I found that it errors out when there is no disc in the CD-ROM drive! I used set comspec command /F before, but found that it still wouldn't work. Could one of the experts help me?
|
|
| Floor2 hyy | Posted 2003-02-24 00:00 |
| 初级用户 Posts 7 Credits 124 | |
|
Is there some DOS tool that can compare the size of two numbers and return a variable value? I want to use it to compare two numeric variables
Thanks, experts! |
|
| Floor3 Wengier | Posted 2003-02-24 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
There are plenty of them, for example ASET and TESTIF. You can download them from the site's "script tools" section.
|
|
| Floor4 hyy | Posted 2003-02-25 00:00 |
| 初级用户 Posts 7 Credits 124 | |
|
1.What I need is to test whether a CD is inserted (similar to testing whether the floppy drive door is open).
2.The English stuff is too hard to deal with. I want to automatically detect hard disk capacity in a batch file, so I can use gdisk to partition automatically; but at the moment I can only save the partition size into a variable, and Testif can only compare binary numbers. Wengier, can you help me sort this out? Thanks!! |
|
| Floor5 pfox | Posted 2003-02-25 00:00 |
| 银牌会员 Posts 446 Credits 1,451 | |
|
Using CDA can detect whether there is a disc in the CD-ROM drive.
|
|
| Floor6 Wengier | Posted 2003-02-25 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Use the DREADY command. It can not only check whether there is a disc in the CD-ROM drive, but also whether there is a floppy disk in the floppy drive.
|
|
| Floor7 hyy | Posted 2003-02-26 00:00 |
| 初级用户 Posts 7 Credits 124 | |
|
Thanks to Wengier and pfox, the first problem has already been solved. When I used DREADY I wrote the test statement backwards. Now I urgently hope to solve the second problem.
|
|
| Floor8 Wengier | Posted 2003-02-26 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Then use the ASET command; it can compare decimal numbers.
|
|
| Floor9 hyy | Posted 2003-02-28 00:00 |
| 初级用户 Posts 7 Credits 124 | |
|
I took a look, and this software is really hard to deal with. I'll wait until I find someone to translate it first.
|
|
| Floor10 Wengier | Posted 2003-02-28 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Here's an example: ASET A=IF(20 GT 10,Y,N), then when 20 is greater than 10, the value of A will be Y; otherwise it will be N.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |