Link to home
Start Free TrialLog in
Avatar of SRO_TSG
SRO_TSG

asked on

PowerBuilder 10 and GetVolumeInformation

PowerBuilder 10 on Windows XP:  I need to check whether a CD drive has a disk in it.  I found older articles about GetVolumeInformation but it appears this is not supported in PB10.  Can this be done in PB10?  What would the code look like?  TIA!
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I forgot - 'X:' in the above should of course be your CD drive's letter.
Hi,

I dont know how far this workaround will succeed, but give it a try,

have a listbox control on ur window and the code is below,

Boolean lb_valid
lb_valid = lb_1.DirList("Z:\*.*", 0)

If lb_valid = False Then
      MessageBox('Warning','No Disc in drive or Disc Unreadable!',Information!)
End If


Cheers,
Rosh

Forced accept.

Computer101
EE Admin