Using SHFileOperation

2005-07-20 Thread avishay
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

Re: Using SHFileOperation

2005-07-20 Thread Roger Upole
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)) hth Roger "avishay" <[EMAIL PROTECTED]> wrote in messag

Re: Using SHFileOperation

2005-07-20 Thread avishay
Thanks. -- http://mail.python.org/mailman/listinfo/python-list