Page 1 of 1

How to eject dvd tray?

Posted: 09 Jan 2013 21:11
by xyscripter
Is there a command to eject dvd tray?
(or open and eject)

Re: How to eject dvd tray?

Posted: 09 Jan 2013 21:53
by highend
Only via external command line tools (or a .vbs script)...

E.g.: http://www.technize.com/four-ways-to-in ... n-windows/

Re: How to eject dvd tray?

Posted: 10 Jan 2013 15:19
by aurumdigitus
Here is a simple script that will do want you require. NB: I am neither a scripter nor coder but have cobbled some CTB's together to execute important functions on this work station.

Modify as needed for your system!

Code: Select all

//Script to open/close CD drives
//Uses  nirsoft's 64bit utility  from http://www.nirsoft.net/utils/nircmd.html

"= CD Drive Tray Operator =||1"
	;
-
// The semicolon darkens the title line and the dash provides the separation line
"Y - Top Drive  Lite-on Lightscribe";
"Open";
	run "C:\Utility Software\nircmd-x64\nircmd.exe" speak text "Top drive Lightscribe now open";
	run "C:\Utility Software\nircmd-x64\nircmd.exe" cdrom open y;
"Close";
	run "C:\Utility Software\nircmd-x64\nircmd.exe" speak text "Top drive Lightscribe now closed";
	run "C:\Utility Software\nircmd-x64\nircmd.exe" cdrom close Y;
-
"Z -Bottom Drive    LG   DVD-RW";
"Open";
	run "C:\Utility Software\nircmd-x64\nircmd.exe" cdrom open z;
	run "C:\Utility Software\nircmd-x64\nircmd.exe" beep 325 500;
"Close";
	run "C:\Utility Software\nircmd-x64\nircmd.exe" cdrom close z;
	run "C:\Utility Software\nircmd-x64\nircmd.exe" beep 275 750;
/*
-
"Activate Screensaver"
	run "C:\Utility software\nircmd\nircmd.exe"  screensaver
*/
-
"Cancel"