Thanks for the replies but i wanted to get away from using 3rd party software to eject/close my cdrom tray....i am not sure how to use/modify the vb script for my use so if someone can explain it to me i would give it a try...and on the subject of "removable media" is this also hotkey-able for ejecting/closing the cd tray ?.

The command for open/close cd tray is in windows somewhere...i will find it:happy: .Again thanks for the replies.

I would go with the utility (eject.exe) posted by mbx. You wouldn't really consider a 12 kb command line utility 3rd party software?
Anyway the download comes with the sourcecode included. Perhaps you can get some hints from there.

Save those three lines as something.vbs. You can create a shortcut to it then give the shortcut a shortcut key combo to run it. This should eject the first CD drive on your computer. Change the 0 to a 1 on the last line if you want to eject a second drive. It won't close the tray for you tho. :huh:

This script works to open the cdrom drive, but it also starts an extra process wscript.exe that uses resources (about 10 mb of ram) and keeps running even when the drive is closed again. You have to kill it from taskmanager.