Played around a bit with the fso thingie here [Wink] What I'm trying to do is read a CD-rom with the help of the fso object.

I'm stuck at trying to get the serial number of the disc in the drive though... anyone with ideas? It seems like the script here gets the serial of the drive unit itself...  -

code:
$objFSO = CreateObject("Scripting.FileSystemObject")
$Drives = $objFSO.Drives
FOR EACH $Drive IN $Drives
IF $Drive.Drivetype=4
? "Drive: " $Drive.Driveletter " is a CD-Rom drive."

IF $Drive.IsReady <> 0 ; strangely, the arg cannot be set to "= 1"..?
? " ...and contains media"
? " Label: " + CHR(34) + $Drive.VolumeName + CHR(34)
? " Serial: " + CHR(34) + $Drive.SerialNumber + CHR(34) ; The FSO returns the decimal serial, in difference to a cmd DIR, which returns the hex...
ENDIF
?
ENDIF
NEXT

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/h tml/jsprofiles.asp

...another thing I'd like to do is inject & eject the drive unit, and read all files.

There's been that "coffee cup holder" script on www-pages recently, so ejecting won't be a prob I guess [Wink]

[ 21. May 2003, 11:35: Message edited by: masken ]
_________________________
The tart is out there