[python-win32] Using ctypes

Mico Siahaan mico_siahaan at yahoo.com
Mon Dec 27 01:32:48 CET 2010


Hi,

I am learning to use ctypes and I want to use ctypes in Win 7 to do a simple task: delete a file.

I wrote:

import ctypes
ctypes.windll.kernel32.DeleteFileA("E:\deleteme.txt")

But it failed (returned bool value 0)

Please suggest what was wrong?

Regards,

---
Mico | mico_siahaan at yahoo.com | @bangmico



More information about the python-win32 mailing list