![]() |
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-10-31 13:17 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » [Help] How to get drive letters when programming under DOS? |
| Printable Version 1,381 / 6 |
| Floor1 冷石_jasv | Posted 2004-02-01 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
How can I get the drive letters on a computer with no CD-ROM installed under pure DOS?
For example: the computer has A: C: D: one floppy drive, two hard disk partitions How can I get the drive letters of these three drives, The purpose is to store the drive letters into a string array pan$(0 to 255), so that different computers' drive letters can be identified automatically Hope all you experts can help me! |
|
| Floor2 Wengier | Posted 2004-02-02 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Try this:
http://newdos.yginfo.net/upload/drvtypes.exe |
|
| Floor3 冷石_jasv | Posted 2004-02-02 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
Ha, boss, what I want is the principle or the program itself
|
|
| Floor4 gmy | Posted 2004-02-02 00:00 |
| 版主 Posts 392 Credits 1,113 | |
|
Your spirit is admirable, but when using pliers do you also need to know how they were manufactured???
What I mean is, for such a small function there's no need to go further and discuss it. |
|
| Floor5 冷石_jasv | Posted 2004-02-02 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
Hey, I'm afraid that one day I'll be thrown into the desert. Not to mention pliers, even a needle I'd have to make myself
Does any expert know? |
|
| Floor6 gmy | Posted 2004-02-02 00:00 |
| 版主 Posts 392 Credits 1,113 | |
|
The first priority in getting into the desert is to find a water source! You're not from Jiangmin, are you? Unless you're making a DOS version antivirus program, otherwise it's not much use.
|
|
| Floor7 冷石_jasv | Posted 2004-02-02 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
Really, it takes all kinds. If you don't know yourself, then don't stop others from trying to figure it out
I know CD-ROM drives can be handled with DOS interrupts, but for hard disks there doesn't seem to be that kind of interrupt Boss Wengier, do you have any way to solve this? |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |