hello there!
does anyone there has created a code for getting the drive list in the computer? I'm trying to make a component in VB.Net for getting the list of hard drives attached in the computer. Pls. give me a sample code. thanks a lot!
I have a code below but it always return an error
here's the code
dim myComputerObj as new System.FileSystemObject()
Private Sub GetDriveList()
dim iCtr as integer
dim drvLetter as string
for iCtr = 0 to myComputerObj.Drives.Count()
drvLetter = myComputerObj.Drives.Item(ictr).DriveLetter.toString()
next
End Sub
the error returned in this code is incorrect parameters.
does anyone there has created a code for getting the drive list in the computer? I'm trying to make a component in VB.Net for getting the list of hard drives attached in the computer. Pls. give me a sample code. thanks a lot!
I have a code below but it always return an error
here's the code
dim myComputerObj as new System.FileSystemObject()
Private Sub GetDriveList()
dim iCtr as integer
dim drvLetter as string
for iCtr = 0 to myComputerObj.Drives.Count()
drvLetter = myComputerObj.Drives.Item(ictr).DriveLetter.toString()
next
End Sub
the error returned in this code is incorrect parameters.