[python-win32] Using ctypes
Mico Siahaan
mico_siahaan at yahoo.com
Mon Dec 27 03:26:57 CET 2010
Dear Shun-ichi,
I did replace "E:\deleteme.txt" to r"E:\deleteme.txt" or to "E:\\deleteme.txt" but still failed.
Thanks,
---
Mico | mico_siahaan at yahoo.com | @bangmico
-----Original Message-----
From: Shun-ichi Goto <shunichi.goto at gmail.com>
Sender: python-win32-bounces+mico_siahaan=yahoo.com at python.org
Date: Mon, 27 Dec 2010 10:51:13
To: <python-win32 at python.org>
Subject: Re: [python-win32] Using ctypes
2010/12/27 Mico Siahaan <mico_siahaan at yahoo.com>:
> import ctypes
> ctypes.windll.kernel32.DeleteFileA("E:\deleteme.txt")
It should be r"E:\deleteme.txt" or "E:\\deleteme.txt"
--
Shun-ichi GOTO
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the python-win32
mailing list