Page 1 of 3 123 LastLast
  1.    07 Aug 2017 #1
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 706
    Windows 10 Professional

    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 ComputerSystem Spec
  2.    07 Aug 2017 #2
    Join Date : Nov 2013
    Chicagoland
    Posts : 33,722
    Dual boot Windows 10 FCU Pro x 64 & Insider 10 Pro

    Quote Originally Posted by pepanee View Post
    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 ComputersSystem Spec
  3.    07 Aug 2017 #3
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 706
    Windows 10 Professional
    Thread Starter

    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 ComputerSystem Spec
  4.    07 Aug 2017 #4
    Join Date : Nov 2013
    Chicagoland
    Posts : 33,722
    Dual boot Windows 10 FCU Pro x 64 & Insider 10 Pro

    Quote Originally Posted by pepanee View Post
    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 ComputersSystem Spec
  5.    08 Aug 2017 #5
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 706
    Windows 10 Professional
    Thread Starter

    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 ComputerSystem Spec
  6.    08 Aug 2017 #6
    Join Date : Nov 2013
    Chicagoland
    Posts : 33,722
    Dual boot Windows 10 FCU Pro x 64 & Insider 10 Pro

    @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.


    Click image for larger version. 

Name:	File Explorer Actions.PNG 
Views:	32 
Size:	29.6 KB 
ID:	147901
      My ComputersSystem Spec
  7.    08 Aug 2017 #7
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 706
    Windows 10 Professional
    Thread Starter

    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 ComputerSystem Spec
  8.    08 Aug 2017 #8
    Join Date : Nov 2013
    Chicagoland
    Posts : 33,722
    Dual boot Windows 10 FCU Pro x 64 & Insider 10 Pro

    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 ComputersSystem Spec
  9.    08 Aug 2017 #9
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 706
    Windows 10 Professional
    Thread Starter

    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 ComputerSystem Spec
  10.    08 Aug 2017 #10
    Join Date : Nov 2013
    Chicagoland
    Posts : 33,722
    Dual boot Windows 10 FCU Pro x 64 & Insider 10 Pro

    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 ComputersSystem Spec

 
Page 1 of 3 123 LastLast


Similar Threads
Thread Forum
Solved Context menu now has "Powershell" instead of "Command Prompt"
So I updated to the CU over a week ago, and I noticed an odd change. The "Open command prompt here" option in the shift+right-click context menu has been replaced by "Open Windows Powershell here" instead. Powershell does not work with the apps I...
General Support
Context menu "Properties" uses "o" shortcut instead of "r"
One of our Win10 laptops has a context menu with "Properties" that uses shortcut key "r". The other uses key "o" which conflicts with "open". I have no idea how it got corrupted. Suggested locations in the registry for context menu doesn't list it....
General Support
How to create a shortcut to the "Advanced display settings" page
I was able to find the URI for the regular display settings page and make a shortcut page but not for the advanced display settings. I'd like it for the advanced display since that's where you change your resolution and I do that often. Thanks
Graphic Cards
Remove "Paste shortcut" and "Undo delete" from right-click desktop men
Greetings. So, I would like to remove "Paste shortcut" and "Undo delete" from the right-click desktop menu. Wasn't able to locate either in the registry.
Customization
"Create Shortcut"s target path points to wrong Program Files folder.
When I create a shortcut to file in Program Files, the target path for that shortcut will be to Program Files (x86), even though the start in path will be correct. Furthermore, even though the target path is incorrect and no icon is displayed for...
General Support
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 18:28.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums