How to check disc space CD or DVD (VB6)

vbimport

#1

I need Source code Check Disc Space for CD or DVD
in VB6 or VB.Net

Thank you …


#2

'NOTE: Add a reference to “Microsoft Scripting Runtime”

Dim dDrive As Drive
Dimm FSO as New FileSystemObject
Dim TotalCap

Set dDrive = FSO.Drives(“D:”)

TotalCap = dDrive.TotalSize