+ 1

How to open cd tray from cmd?

I using google to find another command but cmd console say "command not found exception"

6th Mar 2020, 8:54 PM
Edwin Bg
Edwin Bg - avatar
1 ответ
+ 1
create file "CD.bat" and copypaste this and run: @set @x=0 /*; @echo off mode con:cols=20 lines=3 color 0A title eject if exist %temp%\opened (goto closing) else (goto opening) exit :opening echo Please Wait... echo Opening CDrom... del %temp%\closed echo.>%temp%\opened call :CDROM Eject exit :closing echo Please Wait... echo Closing CDrom... del %temp%\opened echo.>%temp%\closed call :CDROM Insert exit Exit /B :CDROM [option] cscript.exe //nologo //e:jscript "%~f0" "%~1" Exit /B */try { var WMP = new ActiveXObject('WMPlayer.OCX.7'); var arCD = WMP.cdromCollection; for (var i = 0; i < arCD.Count; i++) { arCD.item(i).Eject(); if (WScript.Arguments(0) == 'Insert') arCD.item(i).Eject(); } } catch (e) { }
27th Mar 2020, 4:28 AM
Baby loves senpai
Baby loves senpai - avatar