Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP