China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-09-15 02:23
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » Can someone help me out...... View 2,030 Replies 9
Original Poster Posted 2003-02-24 00:00 ·  中国 四川 绵阳 电信
初级用户
Credits 124
Posts 7
Joined 2003-01-02 00:00
23-year member
UID 662
Gender Male
Status Offline
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?
Floor 2 Posted 2003-02-24 00:00 ·  中国 四川 绵阳 电信
初级用户
Credits 124
Posts 7
Joined 2003-01-02 00:00
23-year member
UID 662
Gender Male
Status Offline
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!
Floor 3 Posted 2003-02-24 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
There are plenty of them, for example ASET and TESTIF. You can download them from the site's "script tools" section.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2003-02-25 00:00 ·  中国 四川 绵阳 电信
初级用户
Credits 124
Posts 7
Joined 2003-01-02 00:00
23-year member
UID 662
Gender Male
Status Offline
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!!
Floor 5 Posted 2003-02-25 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
Using CDA can detect whether there is a disc in the CD-ROM drive.
Floor 6 Posted 2003-02-25 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2003-02-26 00:00 ·  中国 四川 绵阳 电信
初级用户
Credits 124
Posts 7
Joined 2003-01-02 00:00
23-year member
UID 662
Gender Male
Status Offline
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.
Floor 8 Posted 2003-02-26 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Then use the ASET command; it can compare decimal numbers.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 9 Posted 2003-02-28 00:00 ·  中国 四川 绵阳 电信
初级用户
Credits 124
Posts 7
Joined 2003-01-02 00:00
23-year member
UID 662
Gender Male
Status Offline
I took a look, and this software is really hard to deal with. I'll wait until I find someone to translate it first.
Floor 10 Posted 2003-02-28 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: