Created
January 29, 2017 07:31
-
-
Save mystasly48/dfeb4dc7c8625044a4678406d7a37a0d to your computer and use it in GitHub Desktop.
DVD/CD ドライブの開閉
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim wmp | |
Set wmp = CreateObject("WMPlayer.OCX") | |
wmp.cdromcollection.item(0).eject() 'OPEN | |
WScript.Sleep 1000 'WAIT A SECOND | |
wmp.cdromcollection.item(0).eject() 'CLOSE | |
WScript.Quit(eLevel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment