I've seen a few executables/utilities that do it, and many forums that say it is not possible to do. But is there any DOS command that I can rely on in a typical XP installation?
|
There seems to be no way using rundll or a preexisting executable. If you have windows scripting host installed, maybe the following helps (untested, copied from another forum)
Change the (0) if you have more than one drive. |
|||
|
I can do better than that... Paste this into a batch file called "eject.bat":
You can pass any drive letter to this batch file, so you can eject any drive. You can even eject devices like iPods and USB drives. |
|||||
|
|
There is a windows API call to do it, but unfortunately not a built in command. There is a command line tool you can download though that will do the job. |
|||
|
|
|
Executables do it using the |
||||
|
|
|
Necro. Nir Command shortcut option "nircmdc.exe cdrom open D:" where D is your optical drive. Change icon for shortcut to something appropriate to eject. |
|||
|
|