----------------------------------- PHP God Tue Jul 22, 2003 1:58 pm CD Music ----------------------------------- can turing detect what the last track number on a cd is? ----------------------------------- Dan Tue Jul 22, 2003 4:19 pm ----------------------------------- i think there was another post about this. i bivle you can used the Dir comands to find this out if you know the cd drivers name. ex. var cdDrive : string := "d:" var fileName : string var streamNumber : int := Dir.Open (cdDrive) var numOfFiles : int := 0 loop fileName := Dir.Get (streamNumber) exit when fileName = "" if fileName not= "." and fileName not= ".." then numOfFiles += 1 end if end loop put "There are ", numOfFiles, " files in ", cdDrive ----------------------------------- JayLo Tue Jul 22, 2003 11:58 pm ----------------------------------- http://www.compsci.ca/bbs/viewtopic.php?t=190