Help controlling CDROM from python

MonkeeSage MonkeeSage at gmail.com
Sun Mar 11 02:26:13 CET 2007


On Mar 10, 4:11 pm, "MonkeeSage" <MonkeeS... at gmail.com> wrote:
>     win32file.CreateFile(r'\\.\\' + drive, GENERIC_READ,
> FILE_SHARE_READ,
>                          None, OPEN_EXISTING, 0, 0)

Oops! That should have been:

    h = win32file.CreateFile(r'\\.\\' + drive, GENERIC_READ,
                             FILE_SHARE_READ, None,
                             OPEN_EXISTING, 0, 0)




More information about the Python-list mailing list