You wrote:
>
>I am trying to zero an entire usb drive including the boot sector. The
>code below works perfect but if I try to open the drive in write
>mode(wb) then I get this error message:
>
>IOError: [Errno 2] No such file or directory: u'\\\\.\\PHYSICALDRIVE1'

Are you running as administrator?  And which operating system?  On Windows 7, 
Microsoft has changed the rules so that you can no longer write to a physical 
drive at all from user mode.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to