Originally published on: Thu, 20 Aug 2009 02:30:38 +0000
Please note! If you're having difficulties compiling the C source code presented below, please see my post: Compiling C from the Command Line with Pelles C
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
Views expressed in this blog are those of the author and do not necessary reflect those of the author's employer. Views expressed in the comments are those of the responding individual.

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 |
Click **here**
A JavaScript REPL for Android Devices
A Review of Kevin Mitnick's Book Ghost in the Wires
Play MP3 Files with Python on Windows
Send GMail From the Windows Command-Line with MailWrench
Windows Text to Speech in WSH JavaScript
Setting Text Color in a Batch File
BPL: Batch Programming Language Interpreter
A Review of Kevin Mitnick's Book Ghost in the Wires
Why Some Web Sites will go Dark on Jan 18th
Book Review : Paull Allen - Idea Man
A 90's Experiment in Online Systems - The U.S. West CommunityLink Service