Is there a command to eject dvd tray?
(or open and eject)
How to eject dvd tray?
-
highend
- Posts: 14956
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: How to eject dvd tray?
Only via external command line tools (or a .vbs script)...
E.g.: http://www.technize.com/four-ways-to-in ... n-windows/
E.g.: http://www.technize.com/four-ways-to-in ... n-windows/
One of my scripts helped you out? Please donate via Paypal
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: How to eject dvd tray?
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!
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"
XYplorer Beta Club