|
-
Nov 16th, 2001, 11:59 PM
#1
Thread Starter
Lively Member
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
Patience with me Please! I'm Learning!
Self Learning Newbie
VB 6 Pro SP4
-
Nov 17th, 2001, 08:19 PM
#2
Frenzied Member
If you keep track of the last moved file, its previous path, and its current path, you can move it back again...
-
Nov 17th, 2001, 08:39 PM
#3
Good Ol' Platypus
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.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Nov 17th, 2001, 08:41 PM
#4
Frenzied Member
If he can track the names why bother with API?????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|