rupole at hotmail.com
Wed Jul 20 13:49:43 EDT 2005
SHFILEOPSTRUCT is just a tuple, with the elements
listed in docs.
from win32com.shell import shell, shellcon
shell.SHFileOperation((0, shellcon.FO_DELETE, 'somefilename', None, shellcon.FOF_ALLOWUNDO|shellcon.FOF_NOCONFIRMATION))
"avishay" <avishorp at yahoo.com> wrote in message news:1121843013.558480.43380 at g43g2000cwa.googlegroups.com...
> Hi All,
> I want to use SHFileOperation using Python and Win32 extentions, in
> order to move a file to the trash can. The function itself can be
> accessed by importing win32com.shell.shell. However, I cannot find
> anywhere the SHFILEOPSTRUCT. This structure is mentioned in the
> documentation of the Win32 extentions, but I can't find a way to access
> I would appreciate your help. If there's an alternative way to send a
> file to the trash can, that can also help.
> Best Regards
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
More information about the Python-list