How to eject dvd tray?
Posted: 09 Jan 2013 21:11
Is there a command to eject dvd tray?
(or open and eject)
(or open and eject)
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
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"