Using the Setup Toolkit's GetLocalHardDrivesList FunctionLast reviewed: July 23, 1997Article ID: Q114607 |
3.10
WINDOWS
kbprg kbcode
The information in this article applies to:
SUMMARYThe subroutine GetLocalHardDrivesList() takes one parameter, szSymbol$. This parameter is used to specify a symbol name that will receive the hard drive list. The parameter is not a destination string for the return value. The correct way to use the function is to specify a symbol name, such as "drives", and then use GetSymbolValue() or GetListItem() with GetListLength() to obtain the local drive letters.
MORE INFORMATIONThe following is a .MST script that demonstrates how to use this function:
'$include 'setupapi.inc' '$include 'msdetect.inc'INIT:
GetLocalHardDrivesList "drives" '' Obtain and display list of local hard drives. Drives$=GetSymbolValue ("drives") pause Drives$ '' Cycle through list and display them one at a time. for i%=1 to GetListLength ("drives") pause GetListItem ("drives", i) nextQUIT: end |
Additional reference words: 3.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |