How does the Vista dustbin work?

I am trying to write a python module to move files to the Trash on Mac and PC.

Is there a way, only from the command line (and yes, I mean using absloutly no C # / C ++ / etc.) to move the file to the Trash, and it appears as a file that was interrupted by dragging and dropping ( or deleted via SHFileOperation, etc.).

+5
source share
4 answers

You must use the function SHFileOperationor, in Vista IFileOperation(as indicated in gix below).

From comments on SHFileOperation:

SHFileOperation , FOF_ALLOWUNDO fFlags SHFILEOPSTRUCT, lpFileOp. . , , DeleteFile.

+5

Windows - . Shell COM. Windows SHFileOperation. Vista IFileOperation.

+5
+3

, .

-1

All Articles