Click to See Complete Forum and Search --> : How do I UNDO SHFileOperations?


Bishop
May 25th, 1999, 02:11 PM
Hi,

I've written some routines that encapsulate SHFileOperation to perform some shell functions (copy, move, delete). Now I want to implement an UNDO function, but can't figure out how.

Somehow Explorer knows the last action that can be undone, as well as the names of the files (look at the Explorer statusbar while highliting "Undo ???" in the folder context menu).

I've tried all sorts of verbs with IContextMenu::InvokeCommand, but none seem to work. I suppose I'm either getting the wrong context menu (the folder's instead of the general view context menu, if there is a way to get it at all), or going about it all wrong.

Any help would be greatly appreciated.

Thanks,
Theodor