2004-10-10, 09:21 AM
i just spent 2 hours searching google, and i cant seem to find a way to eject a cd/dvd drive in c#. anyone know how to do this?
i need to eject a dvd for the dvd copy method im writing for the moviedb plugin, it creates a dvd iso via dvddecrypter and then i need to eject the dvd and then wait for it to be closed again (i think i can do this with directory.exists method, not sure if it will work on a blank dvd thou) and then open up dvd decrypter again and write the dvd image.
i have to eject the dvd before i open up dvd decrypter again, because if you use the same drive, and a writable dvd isnt in the drive the program will just quit.
i know this isnt really gbpvr related (more C#) but i cant find the answer anywhere and was hoping someone might know.
cheers
i need to eject a dvd for the dvd copy method im writing for the moviedb plugin, it creates a dvd iso via dvddecrypter and then i need to eject the dvd and then wait for it to be closed again (i think i can do this with directory.exists method, not sure if it will work on a blank dvd thou) and then open up dvd decrypter again and write the dvd image.
i have to eject the dvd before i open up dvd decrypter again, because if you use the same drive, and a writable dvd isnt in the drive the program will just quit.
i know this isnt really gbpvr related (more C#) but i cant find the answer anywhere and was hoping someone might know.
cheers