Originally published on: Thu, 20 Aug 2009 02:30:38 +0000
I needed a command-line utility for Windows that would open or close the CD tray. The result is cdctrl.exe. Please refer to the C source code below.
cdctrl.c
If you execute the above program with no arguments, you should see the following: Syntax: cdctrl open or cdctrl close
The source code and EXE for the cdctrl can be found here:
http://www.mailsend-online.com/wp/cdctrl.zip
Unless otherwise noted, all code and text entries are Copyright ©2009 by James K. Lawless
Save to del.icio.us
Save to StumbleUpon
Digg it
Save to Reddit
Share on Facebook
Share on Twitter
More bookmarks
| Previous post: | Java in a Windows EXE with launch4j |
|---|---|
| Next post: | Tracing XSLT with a Tiny Java Web Server |
Subscribe!
Auto Save Clipboard Images Redux
Extending SpiderMonkey JavaScript on Windows
Rhino JavaScript to EXE with launch4j
Compiling Rhino JavaScript to Java
Directory Traversal in Rhino JavaScript
A Command-Line MP3 Player for Windows
Auto Save Images from the Clipboard
Java in a Windows EXE with launch4j
An Interview with Tom Zimmer: Forth System Developer
Setting Windows Console Text Colors in C
An Interview with the Creator of the BDS C Compiler
PHP, Transparent GIF's, and Web Tracking
Command-Line Image Format Conversion
Java in a Windows EXE with launch4j
Twimmando: A Command-line Twitter Client
Mad Schemes : Learning Lisp via SICP
Preventing Windows Screen-Saver Activation
MicroISV on a Shoestring
DadHacker
The Bottom Feeder
Writin' That Code!
The Recursive ISV
The Thomsen Blog
Prototypically Speaking
The Reinvigorated Programmer