使用 Java 弹出 CD
有没有简单的方法可以使用Java弹出Windows 7中的D驱动器?我目前并不特别关心跨平台兼容性。我做了一些研究,Runtime.getRuntime().exec();
显示得最多......但我不知道该将什么作为字符串参数,我尝试了一些但它只是让我恶心!
Is there any simple way to eject the D drive in Windows 7 using Java? I don't particularly care about cross-platform compatibility at the moment. I've done some research andRuntime.getRuntime().exec();
has shown up most... but I have no idea what to put as the string parameter, I've tried a few things but it just throws up on me!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以传递 vbscript 代码以弹出 cd 作为
exec()
函数中的参数。You can pass the vbscript code to eject the cd as an argument in the
exec()
function.