Need a feature: all drives/mount points

Hi!

A feature, which I miss (from Dir?) is to list the available drivers
under dos/windows and the mount points under linux.

How can I do it?

Gergo

±[Kontra, Gergely @ Budapest University of Technology and Economics]-+

    Email: kgergely@mcl.hu,  kgergely@turul.eet.bme.hu          |

URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 |
±------“Olyan langesz vagyok, hogy poroltoval kellene jarnom!”-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

A feature, which I miss (from Dir?) is to list the available
drivers under dos/windows

What do you mean by “available drivers”?

If you mean “available drives” you can call the API functions
GetLogicalDrives() or GetLogicalDriveStrings() in Windows. Also
GetDriveType().

and the mount points under linux.

$ mount
/dev/hda7 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda2 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
$ cat /etc/fstab
/dev/hda7 / ext3 defaults 1 1
/dev/hda2 /boot ext2 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,user,exec 0
0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,ro,user 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
/dev/hda1 /mnt/c vfat noauto,user 0 0
/downloads/redhat-1.iso /mnt/rh1 iso9660 noauto,loop,ro,user
0 0
/downloads/redhat-2.iso /mnt/rh2 iso9660 noauto,loop,ro,user
0 0
/downloads/redhat-3.iso /mnt/rh3 iso9660 noauto,loop,ro,user
0 0
$ cat /etc/mtab
/dev/hda7 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda2 /boot ext2 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0

···

On Tuesday 09 July 2002 07:25 am, Kontra, Gergely wrote:


Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE