|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
viewing media typeIs it possible to find out what type of media is currently in a CD or
DVD rom drive. For example R or RW and how much space? To be used to check if there is space and ability to write to the current drive with data. -- Kevin J Prince Skype address princy557 "Kevin J Prince" <ke***@princ7.demon.co.uk> posted: I think the best you might do involves checking the contents> Is it possible to find out what type of media is currently in > a CD or DVD rom drive. For example R or RW and how > much space? > To be used to check if there is space and ability to write to > the current drive with data. drive for a disk and inspecting the contents and/or the file system of the drive... ie, reading information about the "file system" tells you if it's a DVD or CD or other media. I believe the same things that happened with floppy drives, happened with DVD's as well. For instance, the floppy disks started out with a particular file system formatting (single-sided, then later came double- sided, then later double-density... and so on). Keep that in mind when dealing with this topic. CD's carry different file systems as well, because there are at least two formats that I know of, a 650K CD and 700K CD. Scroll down to Drive Info on this page... http://vbnet.mvps.org/code/fileapi/index.html Check media type... http://vbnet.mvps.org/index.html?code/disk/getmediatype.htm You can check the file-system used on the disk... http://vbnet.mvps.org/code/disk/driveinfo.htm You can check the amount of free space... http://vbnet.mvps.org/code/disk/getdiskfreespaceex.htm Check out these links as well... http://vbnet.mvps.org/code/disk/cdexists.htm http://vbnet.mvps.org/code/disk/floppyready.htm Hope this helps. -- Jim Carlock Post replies to the newsgroup, thanks. Jim, thanks for the info and ideas. I'll try and follow them through,,
Regards Kevin In message <ea#VdvkvFHA.1***@TK2MSFTNGP09.phx.gbl>, Jim Carlock <anonymous@localhost.?.invalid> writes Show quoteHide quote >"Kevin J Prince" <ke***@princ7.demon.co.uk> posted: >> Is it possible to find out what type of media is currently in >> a CD or DVD rom drive. For example R or RW and how >> much space? >> To be used to check if there is space and ability to write to >> the current drive with data. > >I think the best you might do involves checking the contents >drive for a disk and inspecting the contents and/or the file >system of the drive... > >ie, reading information about the "file system" tells you if it's >a DVD or CD or other media. I believe the same things that >happened with floppy drives, happened with DVD's as well. >For instance, the floppy disks started out with a particular >file system formatting (single-sided, then later came double- >sided, then later double-density... and so on). Keep that in >mind when dealing with this topic. CD's carry different >file systems as well, because there are at least two formats >that I know of, a 650K CD and 700K CD. > >Scroll down to Drive Info on this page... >http://vbnet.mvps.org/code/fileapi/index.html > >Check media type... >http://vbnet.mvps.org/index.html?code/disk/getmediatype.htm > >You can check the file-system used on the disk... >http://vbnet.mvps.org/code/disk/driveinfo.htm > >You can check the amount of free space... >http://vbnet.mvps.org/code/disk/getdiskfreespaceex.htm > >Check out these links as well... >http://vbnet.mvps.org/code/disk/cdexists.htm >http://vbnet.mvps.org/code/disk/floppyready.htm > >Hope this helps. > >-- >Jim Carlock >Post replies to the newsgroup, thanks. > > -- Kevin J Prince Skype address princy557 |
|||||||||||||||||||||||