使用cmd打开或关闭cd-drive
问题描述:
是否有任何方法可以使用cmd关闭和打开cd-drive?使用cmd打开或关闭cd-drive
我可以打开它像这样:
powershell (New-Object -com "WMPlayer.OCX.7").cdromcollection.item(0).eject()
但IDK的是如何将其关闭
(当然,我可以把它,但我的意思是我如何与CMD关闭)
答
发现在谷歌关键字:
PowerShell的接近CD-ROM驱动器
的重复:https://superuser.com/questions/515464/how-to-close-the-optical-drive-tray-in-windows –