Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
AddExtender ("wilx34i.dll") drive = "d:" ;the "first" CD on the system rc = xEjectMedia (drive) ;open the door Message ("xEjectMedia","Insert CD") PlayMedia ("set cdaudio door closed") ;close the doorThe second CD on the system is e: the following works fine to open the door and prompt:
drive = "e:" rc = xEjectMedia (drive) Message ("xEjectMedia","Insert CD")However, I can't find a way to CLOSE the door on this second CD? Can you tell me what to do? Can this be adapted for the second CD?
PlayMedia ("set cdaudio door closed")
Play CdAudio - Plays your default cdrom's audio.. Stop CdAudio - Stops your default cdrom's audio from playing.. Pause CdAudio - Pause's your default cdrom's audio... (Pause and Resume are meant to work together) Resume CdAudio - Resume your default cdrom's audio... (Pause and Resume are meant to work together) set cdaudio door open - Open the default cdrom's door.. (these commands are best used consecutively) set cdaudio door closed - Closes the default cdrom's door.. (These commands are best used consecutively) play cdaudio from 1 to 4 - Plays tracks 1 through 4 on the default cdrom (substitute the numbers for your own) play cdaudio from 4 - Plays tracks 4 on the default cdrom till the end then quitsSample code:
cCDDrive1 = "K:\" ; First CD Drive cCDDrive2 = "L:\" ; Second CD Drive PlayMedia ("Open %cCDDrive1% type CDAudio alias CDDrawer1") PlayMedia ("Set CDDrawer1 Door Open Wait") Message ("INSERT CD IN FIRST DRIVE","Insert the CD and click OK.") PlayMedia ("Set CDDrawer1 Door Closed Wait") PlayMedia ("Open %cCDDrive2% type CDAudio alias CDDrawer2") PlayMedia ("Set CDDrawer2 Door Open Wait") Message ("INSERT CD IN SECOND DRIVE","Insert the CD and click OK.") PlayMedia ("Set CDDrawer2 Door Closed Wait")
Article ID: W16339
File Created: 2011:09:14:12:57:36
Last Updated: 2011:09:14:12:57:36