Re: [python-win32] Using ctypes - solved

2010-12-27 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Mico Siahaan wrote: æ«jYH·¬²‰oyÒ-Á«yÆ®±ì!zr­æ­yÛayø¥zëž �Ú0±ìi–ŠÞ¬×°Mìm‡.™éí·*^u×¥zצzÜmjÉÚ™ë(iËnjYr¶ŸŠW§jg°jÇ^•ë^™ëq¶ÜmEè­Û ‰Ê‰Ê,‰¨Zj|š†Š¢fÚž ¢rƒ«Š§jS²Æ

[python-win32] Using ctypes

2010-12-26 Thread Mico Siahaan
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 |

Re: [python-win32] Using ctypes

2010-12-26 Thread Shun-ichi Goto
2010/12/27 Mico Siahaan mico_siah...@yahoo.com: import ctypes ctypes.windll.kernel32.DeleteFileA(E:\deleteme.txt) It should be rE:\deleteme.txt or E:\\deleteme.txt -- Shun-ichi GOTO ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Using ctypes - solved

2010-12-26 Thread Mico Siahaan
...@yahoo.com Sender: python-win32-bounces+mico_siahaan=yahoo@python.org Date: Mon, 27 Dec 2010 02:26:57 To: python-win32@python.org Reply-To: mico_siah...@yahoo.com Subject: Re: [python-win32] Using ctypes Dear Shun-ichi, I did replace E:\deleteme.txt to rE:\deleteme.txt or to E