Hello, I would like to access the recycle bin on windows xp and eventually empty its content.
Googling around this led me to try the following (to empty the bin): from win32com.shell import shell shell.SHEmptyRecycleBin() Unfortunately, this doesn't work. The traceback gives me : TypeError: SHEmptyRecycleBin() takes exactly 3 arguments (0 given) So, I tried something I found somewhere: from win32com.shell import shell shell.SHEmptyRecycleBin( #No confirmation dialog when emptying the recycle bin SHERB_NOCONFIRMATION = 0x00000001, #No progress tracking window during the emptying of the recycle bin SHERB_NOPROGRESSUI = 0x00000001), #No sound whent the emptying of the recycle bin is complete SHERB_NOSOUND = 0x00000004 ) This doesn't work either, giving me the following traceback: TypeError: SHEmptyRecycleBin() takes no keyword arguments Ooops! The 2 tracebacks are contradictory. Can anybody help me on this, please. read and empty the bin and possibly send a file to it. Thanks in advance Dominique _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor