Re: [python-win32] Using ctypes - solved
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²Æ xZè˜Èœ¡(š…¦§š'(²¡i©òj(r‰’zw^®œ†‰ðŠ}ön‹§qëš'(²¡i©É¨h¡Ê§+a¢z+€6xÊ'Û°Þsm5ÓM¶ëžÓ¢œ†‰ðŠ}ö§+a¢z+�©—$èš'(²¡i©òj(r‰’¹¸ÞrÔ^§+a¢|Ÿ}”²)àrÜ©zÀÞj´¡ºxœ†‰ÚÞ¦VœxG^•ë^™ëq¶Ú+×¥zצzÜm¢»h×¥zצzÜmnël¶)e}¨¥yÔájy,2'(š'(²¡i©òj(r‰›jx‰Ê®(�©LzË�ák¢d¡ºxœ†!¨¶‹!ºxœ†((¶ˆj)\¢dž�׫§+a¢|Ÿ}›¢éÜzϦ‰Ê,‰¨Zjpj(r‰©ÊØhžŠà «^2‰öì7œÛMt×Nu×tè§+a¢|Ÿ}©ÊØhžŠàJæãyËQzœ†‰ðŠ}öRȧ�Ër¥ë6Ó]?×oöìÈœ¡(š…¦§š'(²¡i©òj(r‰¢šš+µËr¥ë·*^³§vYdz¹Þ—}ƒzWxX¥xzWzgÆÒ-².•ÖÞ¬G^•ë^™ëq¶ŠÄué^µéž·R†éâr†93©ÊØhŸ§ßišŠX§‚X¬¶œ†‰ðŠ}ö§+a¢z+‚m§ÿæj)iÊØhžŠàþf¢–f§þX¬¶)ߣúr¶'Â)÷Úœ†‰ðŠ}ö™¨¥Šx%ŠËiÊØhŸ§ßjr¶'¢¸!¶Úþf¢–œ†‰è®æj)fjåŠËb�ú?§+a¢|n32= One of the first things I do on a Windows installation is to reverse many of the preferences in Windows Explorer. The one that's wrong on your system is called something like hide extensions of known type. The Explorer defaults are set up for somebody who doesn't have a clue. DaveA ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
[python-win32] Using ctypes
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
Re: [python-win32] Using ctypes
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 http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Using ctypes - solved
Dear all, It was solved. It was because when I created the file using windows explorer New Text Document typed deleteme.txt as name, so actually the filename was deleteme.txt.txt. Regards, --- Mico | mico_siah...@yahoo.com | @bangmico -Original Message- From: Mico Siahaan mico_siah...@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:\\deleteme.txt but still failed. Thanks, --- Mico | mico_siah...@yahoo.com | @bangmico -Original Message- From: Shun-ichi Goto shunichi.g...@gmail.com Sender: python-win32-bounces+mico_siahaan=yahoo@python.org Date: Mon, 27 Dec 2010 10:51:13 To: python-win32@python.org Subject: Re: [python-win32] Using ctypes 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 http://mail.python.org/mailman/listinfo/python-win32 ___ 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