I think this error appears when you empty a recycle bin that is empty.
I tried that code snippet and it gave me the same error, but when I actually
put something in the recycle bin and then ran it again it went through fine
without raising an exception.

Tom

On Sun, Nov 22, 2009 at 1:07 AM, Andrew Ziem <ahz...@gmail.com> wrote:

> Using Python 2.5.4 on Vista and Windows 7, I get a catastrophic
> failure with the same code that works on XP SP3
>
> from win32com.shell import shell
> shell.SHEmptyRecycleBin(None, None, 0)
>
> com_error: (-2147418113, 'Catastrophic failure', None, None)
> In hex, this error is 8000ffff.
>
> I tried drive="c:\\" and running as admin.
>
>
> Best regards,
> Andrew
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to