How To Create A Shortcut That Executes The "Undo" Command

Page 1 of 3 123 LastLast

  1. Posts : 2,899
    Windows 10 Pro for the Bro
       #1

    How To Create A Shortcut That Executes The "Undo" Command


    Hi, just a quick request. Does anyone know how to create a shortcut that I can open that will run the "Undo" command?

    For example:
    Suppose you have File Explorer open and delete a file from a folder. You can right click in that folder and click on "Undo Delete" to have that file come right back into the folder from the Recycle Bin. I want to create a file that when I double click it, it will act the same as if I did Right Click > Undo Delete.

    Does anyone know how I can do this please?

    Thanks
      My Computer


  2. Posts : 5,833
    Dual boot Windows 10 FCU Pro x 64 & current Insider 10 Pro
       #2

    pepanee said:
    Hi, just a quick request. Does anyone know how to create a shortcut that I can open that will run the "Undo" command?
    Hi there. You're speaking of the File Explorer Context Menu. It would have to be done with a script in a .reg file to add to the Registry, which probably can be done, but so many discontinue to work from build to build.
      My Computers


  3. Posts : 2,899
    Windows 10 Pro for the Bro
    Thread Starter
       #3

    Hi.

    Yes you're right, the File Explorer Context Menu. Can you find me the reg info if possible? But I was also thinking of something along these lines:

    Right Click > New > Shortcut
    Then in the text field, insert: C:\Windows\explorer.exe [and with some argument after, where it would run the Undo command]

    Do you know anything like this?
      My Computer


  4. Posts : 5,833
    Dual boot Windows 10 FCU Pro x 64 & current Insider 10 Pro
       #4

    pepanee said:
    Do you know anything like this?
    Sorry, I wouldn't know for I don't write code and from what I understand it's a very complicated process. That's not to say it can't be done. Here's a search result that may lead you in the right direction and possibly someone who would know.

    reg files to add to file explorer context menu - Bing

    Also, I know some members that do write code and may chime in here with more info.

    Good luck. :)
      My Computers


  5. Posts : 2,899
    Windows 10 Pro for the Bro
    Thread Starter
       #5

    Oh I see what you mean now actually. I want a Desktop Icon that I can double click on that will execute the Undo command. It's already in the right click context menu, so I don't need to add another one there.
      My Computer


  6. Posts : 5,833
    Dual boot Windows 10 FCU Pro x 64 & current Insider 10 Pro
       #6

    @pepanee

    My apology. LOL. It finally sunk in with what you're after. I'm a keyboarder and rarely use the mouse unless I'm forced to as with a browser. I do all these command actions with keyboard combo keys shortcuts or single keys.

    There is indeed a drop-down command menu in File Explorer for undo, redo, delete, properties, new folder, and rename commands on the Title Bar. In the snip below I have it set below the ribbon. Checkmark them to expose them on that command bar.

    File Explorer is a navigational program of the system whereas the Desktop is not. It's a screen that's treated as a folder in File Explorer. Therefore I'm not sure whether you can place an undo or any other command shortcut on the Desktop for File Explorer or any other program. However, logically you would have to find where those/any command shortcuts are to place in/on the Desktop. Keep in mind that this is all part of the UI.

    Hope that helps you a little of what you're looking for.


    Attachment 147901
      My Computers


  7. Posts : 2,899
    Windows 10 Pro for the Bro
    Thread Starter
       #7

    Hi thanks for the reply. Yes, I was seeing if I could use that option you just mentioned, but for my project that I'm doing, its limited really. The "undo command" doesn't really have to be on the Desktop, I can place it in any folder. The whole thing is that this idea I want to use with a macro that I'm running. I use Macro Express, yet there's no "Undo Delete" function in there that would undo a deleted file in File Explorer.

    I need to run a macro that executes the "Undo Delete" function if another macro accidentally deletes a file. You see, in Macro Express, to do an "Undo Delete" function, I would have to make the macro open up File Explorer, press CTRL+Z, and close File Explorer, which is kinda messy. Whereas it would be much more convenient to have a small file that I can have the macro run that file. That file that runs would do an "Undo Delete" command. That would work very perfectly in this project.

    I hope you understand what I'm trying to do. It's a bit complicated as you can see. Sorry if I sounded unclear and confusing =)
      My Computer


  8. Posts : 5,833
    Dual boot Windows 10 FCU Pro x 64 & current Insider 10 Pro
       #8

    Yes, I see you're trying to cut down on steps to be taken. I'm only familiar with macros in Office programs, so I'm limited to those.

    Perhaps write Macro Express to see what they think? I know macros can be written.

    BTW, ingenious sig you have there. :)
      My Computers


  9. Posts : 2,899
    Windows 10 Pro for the Bro
    Thread Starter
       #9

    I see. I learned a few macros sometime back then in Microsoft Excel, but I have no clue what they were, it was all school work that one time. Hah.

    And yes, you right. I never thought of posting and asking on Macro Express' forums. Stupid me lol.

    And glad you like the signature =D As a matter of fact, there's more to it than one may assume.
    **Hint Hint** Highlight the whole signature with your mouse!
      My Computer


  10. Posts : 5,833
    Dual boot Windows 10 FCU Pro x 64 & current Insider 10 Pro
       #10

    Don't be hard on yourself. You simply didn't think of it. That's why we have forums to help one another.

    From what I understand macros are scripts of code that cuts down on repetitiveness. e.g. Auto Fill I guess would be one.

    I see what you mean on the sig. Great idea!

    Please let me know if you come up with something. It'll be interesting to see results.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:44.
Find Us




Windows 10 Forums