Results 1 to 4 of 4

Thread: Undo File Move

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    91

    Question 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

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    If you keep track of the last moved file, its previous path, and its current path, you can move it back again...
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    If he can track the names why bother with API?????
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width