I know that you can find the free space available for a hard disk using a vbscript, but is there a way to find the free space for a CD or DVD? I'm using the following code and keep getting 0.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set drive = objFSO.GetDrive(objFSO.GetDriveName("d:\"))
wscript.echo FormatNumber(drive.FreeSpace/1048576, 1)&"Mb"