-
Undo File Move
I have a program that lets me sort through my image files and move them to runtime created folders, could someone tell me how to program a command button that when pressed will undo the last moved file? (I have a File List Box that displays the file name if that helps) Thank You
-
If you keep track of the last moved file, its previous path, and its current path, you can move it back again...
-
Well yeah, but as explained in the first post he doesn't (at least not according to information given). Look into API commands, there may be one there that can simulate the Undo command in Explorer. An alternative solution would be to use the Mouse_Event or SetKeyboardState (or something like that) API calls to manually tell the computer to open My Computer, use the Edit menu, and press the Undo button.
I'm not sure if ANY of these things will work but they could work.
-
If he can track the names why bother with API?????