Hi every body I come back with one new script that inspired by this video and scripting.
and I tried to do this in windows with batch script. The problem in windows is no Dos command for ejecting the CD drive. For this I used the commands and software from here, the first method.
and I add the loop condition for this, that's it...
the batch script is here
eject E: (Ejecting the CD drive, the path of CD drive "E" here )
eject E: /l (Inserting the CD drive)