Jump to content

Drive Info UDFs


NerdFencer
 Share

Recommended Posts

This is a small Set of UDFs I put together to gather drive info. It currently only supports Hard Drives, Disk Drives, and Floppy Drives, if I have time, ill add Tape Drive Support later. Special thanks to JSThePatriot, as I based the _DriveGet functions off of his CompInfo UDF. I am including examples for the DriveGet functions which use the _DriveTranslate functions.

List of Functions

_DriveGetFloppyDrive

_DriveGetCDROMDrive

_DriveGetDiskDrive

_DriveTranslateAvailability

_DriveTranslateCapabilities

_DriveTranslateConfigManagerErrorCode

_DriveTranslateConfigManagerUserConfig

_DriveTranslatePowerManagementCapabilities

_DriveTranslateMediaLoaded

_DriveTranslateStatusInfo

The _DriveGetSomething functions retrieve drive information in an array

The _DriveTranslateSomething functions translate the raw values of standard drive information into readable strings

Library

DriveInfo.au3

Examples

DriveInfoEx_DriveGetCDROMDrive.au3

DriveInfoEx_DriveGetDiskDrive.au3

DriveInfoEx_DriveGetFloppyDrive.au3

_________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...

NerdFencer,

Your code looks great! You've even put in place all the error codes!! Excellent! I haven't ever spent the time to go back through and do that with my code... hehe

I'm going to link this post right on the first post of my CompInfo thread.

@footswitch

Thanks for posting this on the CompInfo thread...this is a great UDF!!

NerdFencer if you want we can combine the UDF's, but it may not be a bad idea to have them seperate as you can see I haven't added to mine or upgraded in a while. I was wanting to add drive support more in mine, but never have. So either way. Great job, love the code, and I'm glad you were inspired by my script.

Thanks,

Jarvis

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...