This is not my code, but I'll be darned if I can find the original email I got it from so I can give proper credit. This is a way to open or close the CD drawer from DOS. Well, more properly, from QBASIC. QBASIC is free with every version of DOS (even though you may not have installed QBASIC when you installed Windows!) and is a free download as well. I give several links telling where to find QBASIC here: http://www.ericphelps.com/batch/basics/index.htm Opening or closing a CD with QBASIC is a two-line operation. Both require the name of the CD driver under DOS. You can find this by looking in your C:\CONFIG.SYS file. There should be a line that will look something like this: DEVICE = C:\BLAH\BLAH\CD_DRIVER.SYS /D:MSCD0000 What we are looking for is everything after the "/D:" and up to the next space. In the above example, the CD driver name would be "MSCD0000". If you have more than one line with a /D: on it, look for a name of the SYS file (CD_DRIVER.SYS in the above example) that has a name based on your CD manufacturer's name. Like maybe "TOSHCD" if your CD was made by Toshiba. You get the idea. In all the code below, you'll see "MSCD0000", but you should replace that with the actual name of the CD driver on your system. I've wrapped the QBASIC code in a batch file to make it a bit easier to use. To open a CD from a batch file: echo OPEN "MSCD0000" FOR OUTPUT AS #1> %TEMP%\CD.BAS echo IOCTL #1, CHR$(0)>> %TEMP%\CD.BAS echo SYSTEM>> %TEMP%\CD.BAS QBASIC /RUN %TEMP%\CD.BAS DEL %TEMP%\CD.BAS To close a CD from a batch file: echo OPEN "MSCD0000" FOR OUTPUT AS #1> %TEMP%\CD.BAS echo IOCTL #1, CHR$(5)>> %TEMP%\CD.BAS echo SYSTEM>> %TEMP%\CD.BAS QBASIC /RUN %TEMP%\CD.BAS DEL %TEMP%\CD.BAS