I know that SHFileOperation can be used to perform file operatons with Windows Explorer, but it only performs complete file operations where both the source and destination are known.
Is there an API that allows a application to cut, copy, or paste in Windows Explorer from an application?
To answer a couple of questions:
Using Windows Explorer to perform file/folder operations would greatly simplify moving multiple objects. This is particularly important for moving folders and their contents since
MoveFile
does not support moving folders to different volumes.Using Windows Explorer to perform file/folder operations would allow the operations to be added to Windows Explorer’s undo buffer so that they can be undone, otherwise operations done with console applications/the command-prompt cannot be undone.
I am sure that I have seen it possible to perform Windows Explorer verbs programmatically, but I can’t seem to find a way to do so for these.