Created
August 16, 2015 02:11
-
-
Save maimainoue/c040a8057ba7217ec059 to your computer and use it in GitHub Desktop.
イジェクト
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
// (☝ ՞ਊ ՞)☝ウイーン | |
// node.js を使ってると良く CD-ROM を取り出したくなりますよね。 | |
// ならないとしたら、今すぐこの記事を読むのをやめて病院に行って下さい。 | |
var win32ole = require('win32ole'); | |
var wmp = win32ole.client.Dispatch('WMPlayer.OCX'); | |
wmp.cdromcollection.getByDriveSpecifier(inDriveLetter.charAt(0)).eject(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment