Jump to content



Photo

Drive Info UDFs


  • Please log in to reply
4 replies to this topic

#1 NerdFencer

NerdFencer

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 284 posts

Posted 08 August 2009 - 01:38 PM

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
Attached File  DriveInfo.au3   29.74KB   1041 downloads

Examples
Attached File  DriveInfoEx_DriveGetCDROMDrive.au3   3.98KB   700 downloads
Attached File  DriveInfoEx_DriveGetDiskDrive.au3   4.11KB   871 downloads
Attached File  DriveInfoEx_DriveGetFloppyDrive.au3   2.83KB   624 downloads







#2 footswitch

footswitch

    Polymath

  • Active Members
  • PipPipPipPip
  • 206 posts

Posted 01 October 2010 - 08:13 PM

This is good stuff.
I added a link in Computer Info UDF's by JSThePatriot

#3 JSThePatriot

JSThePatriot

    carpe diem. vita brevis.

  • MVPs
  • 3,686 posts

Posted 26 November 2010 - 05:16 AM

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 LinksFile-String Hash Plugin Updated! 04-02-08ComputerGetInfo UDF's Updated! 11-23-06External LinksVortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

#4 pierrotm777

pierrotm777

    Wayfarer

  • Active Members
  • Pip
  • 90 posts

Posted 27 November 2010 - 10:32 AM

Is it possible to know on XP and vista , the CPU temp and the computer temp ?

#5 DarkAngel

DarkAngel

    Adventurer

  • Active Members
  • PipPip
  • 127 posts

Posted 27 November 2010 - 12:35 PM

Nice Job !!! :graduated:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users