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_siah...@yahoo.com | @bangmico

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to