Dear all,
I need to know is there any way to display all drives with drive image in a system where the app runs. Like the below image
Combobox is used to displaying the drivers in app.
Thanks you
James Bott wrote:Try the function aDrives().
regards,
James
sanilpmc wrote:James Bott wrote:Try the function aDrives().
regards,
James
Thank you James Bott.
aDrives() returns all vaild drives LETTERS in system. I need to show DRIVE LETTER along with its IMAGE.
I need to know the method or an Object which is able to show both Drive Letter and Drive Image
Please see the Screen shot which is posted earlier. The screen shot has been taken from my application which is developed with MINI GUI.
Thank you
Sanil
Sanil:
It's this what your are looking for?
//----------------------------------//
function copiar()
function totaldrive
mnu1:=array(0,3)
for i=65 to 90
DriveType := GetDrvT32(Chr(i) + ":\")
a1:=.f.
do case
case DriveType = 1
aa:="Not installed"
case DriveType = 2
aa:="Floppy disk"
case DriveType = 3
aa:="Hard Disk"
case DriveType = 4
aa:="Network drive"
.
case DriveType = 5
aa:="CD-ROM"
case DriveType = 6
aa:="RAM-Drive"
otherwise
aa:="Not-identified"
endcase
aadd(mnu1,{"Drive "+chr(i),aa})
next
return mnu1
DLL32 Function GetDrvT32( cPathName as LPSTR ) AS LONG PASCAL ;
FROM "GetDriveTypeA" LIB "Kernel32"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 81 guests