Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Batch file to eject CD


  • Please log in to reply

#1
WayneThornton

WayneThornton

    New Member

  • Member
  • Pip
  • 8 posts
I have created a special Pinball game for my Racquetball friends. I am using a batch file to construct a CD that will install the Pinball game. After the last Install command, I would like the (handout) Installation CD to auto eject for each of my friends (the end users).

Nutshell Question: Can we build a batch command that can be copied onto a CD(Music or Text) that will cause the CD to auto eject after "the last song is sung".

Echo off
Start "" /max HelloInstall.wmv
pause
Call "1st Setup.msi"
Call "2nd Setup.exe"
pause
Call "3rd Setup.bat"
pause
Start "" EjectCD.exe
exit


The EjectCD application does not auto eject the CD, it simply makes it possible to eject the CD by clicking on a taskbar icon.

Instead of Start "" EjectCd.exe, Could I have a 4th Setup.bat that simply sends a message to eject the CD?

Is it possible to send a dos command to double click a taskbar icon?

Is it possible to create a hot key that will eject a cd?
Is it possible to send a message to a hot key .... to tell it to press itself?

Is it possible to tell a close button (X) to click itself?

Is it possible for a dos command to emulate the mouse clicking on anything? Example:
MouseClicks on CdRom\file\eject = CD tray opens
Start "" D\Toolbar\file\eject\MouseClick
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP