Obtains volume information
Usage:
sysDriveInfo (object me, string driveChar, integer infotype)
Parameters:
driveChar ( string ) - the volume character
infotype ( integer ) - the type of drive information to retrieve. Possible values are:
- Volume name
- Serial number
- File system type
Returns:
(string) - the drive information requested.
Example1:
-- test if drive is a NTFS drive
xtRose = xtra("Rosetta").new( )
isNTFS = ( xtRose.sysDriveInfo( "c", 3 ) = "NTFS" )
Example2:
-- generates a unique 32 digit MD5 value based on computer name and hard drive serial number
xtRose = xtra("Rosetta").new( )
strCompName = xtRose.sysComputerName( )
strHardDiskSerial = xtRose.sysDriveInfo( "C", 2 )
-- create 32 digit hash value based on these values
strUserKey = xtRose.md5String( strSerial&"add some random salt to prevent dictionary lookup" )
Notes:
If the parameter for driveChar is more than 1 character, only the first character will be read.