How do I determine CD-ROM Drive Letter ?
Keywords: CD ROM CDROM CD-ROM
Question:
Using WB, I need to determine the Drive Letter being used for a giving PC's CD-ROM Drive. Taking that info and using it in a WB FileCopy or Run Command.OR can I take the CD's Label Name & use UNC type naming convention in a WB FileCopy or Run Commands? ?
Answer:
Option #1:cddrives=DiskScan(8) cdCount=ItemCount(cddrives,@tab) Message("NUmber of CD DRives",cdcount) for xx=1 to cddount thiscd=ItemExtract(xx,cddrives,@tab) Message(xx,thiscd) next
Option #2. If a compiled WinBatch script is running from the CD-ROM, a better way is...myexe=WinExeName("") root=strsub(myexe,1,3) Message("CD ROOT",root)
Article ID: W13205Filename: Determine CD-Rom Drive.txt