1.

Solve : Fsutil?

Answer»

Is there a downloadable version of Fsutil which reports a DVD-RW as such rather than as a CD-ROM which mine does?What do you mean by "downloadable version"?
fsutil is included in Windows.Thanks Broni. I'm using XP Pro and the command fsutil fsinfo drivetype returns the dvd-rw as a CD-ROM. I wondered if there is a newer downloadable version which will return the dvd-rw as a DVD-RW instead of a CD-ROM.Quote from: Dusty on October 30, 2010, 02:36:01 AM

Thanks Broni. I'm using XP Pro and the command fsutil fsinfo drivetype returns the dvd-rw as a CD-ROM. I wondered if there is a newer downloadable version which will return the dvd-rw as a DVD-RW instead of a CD-ROM.

I believe not. In XP and Windows 7 fsutil reports my DVD-RW as a "CD-ROM". I IMAGINE it just TESTS for and reports the lowest common denominator of all optical drives. In both OSs in My COMPUTER, Windows Explorer reports "DVD-RW drive".



Same here on Vista.fsutil fsinfo drivetype most likely uses the GetDriveType API function. This means that all Optical drives will be REPORTED as "CD-ROM", since there is no enumeration for any other type of optical drive.As I suspected, thanks guys.

WMI...

Code: [Select]trComputer = "."
Set objWMIService = GetObject( _
"winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery( _
"Select * from Win32_CDROMDrive")
For Each objItem in colItems
Wscript.Echo "Device ID: " & objItem.DeviceID
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Name: " & objItem.Name
Next

Code: [Select]C:\Test\>cscript //nologo drivetype.vbs
Device ID: IDE\CDROMOPTIARC_DVD_RW_AD-5240S_________________1.03____\5&422CD0B&0&1.0.0
Description: CD-ROM Drive
Name: Optiarc DVD RW AD-5240S ATA Device

Code: [Select]strComputer = "."
Set objWMIService = GetObject( _
"winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery( _
"Select * from Win32_CDROMDrive")
For Each objItem in colItems
Wscript.Echo "Media Type " & objItem.MediaType
Next

Code: [Select]S:\Test\>cscript //nologo CDROM-MediaType.vbs
Media Type DVD Writer
Returns this when tray is empty and with CD-R, CD-RW, DVD+R, DVD+RW media in tray.


Discussion

No Comment Found