VideoHelp Forum


Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Member stax76's Avatar
    Join Date
    Nov 2009
    Location
    On thin ice
    Search PM
    I'm using Windows File Explorer in dark mode and noticed that for certain types of files I have 2 common use cases.

    Example Image files, jpg, png etc.
    ------------------------------------------

    1. Watching the image with an image viewer app, like mpv.
    2. Editing the image with an image editing app, like paint.net

    Scripts, Powershell, Python, Lua etc.
    ---------------------------------------------

    1. Executing the script.
    2. Editing the script, for instance with VS Code.

    For ps scripts and any other text file types, my default file association is VS Code, and for execution I use Open with++, KeyLauncher and Windows Terminal. I'm very happy with the KeyLauncher solution and Windows Terminal but find the Open with++ solution inefficient for very frequent operations. What I would like to try is the following:

    When I double-click a ps1 (or py) file in File Explorer, or press enter, VS Code starts to edit the file, now comes the trick, if I double-click or press enter while the Ctrl key is pressed, I want the script to be executed instead. I checked if Explorer opens it with Ctrl+Enter, and it does.

    It's probably not difficult to build a tool that does what I want, it should not take more than a few hours. I already have built something related in the past:

    WinAppLauncher

    What I would like to ask however is if something similar or related already exists? Not necessary using File Explorer but also other file management tools.
    Quote Quote  
  2. Aren't you making this overly complicated? Just right mouse on the image file and open it using your favorite image editor. Maybe I don't fully understand your question?
    Extraordinary claims require extraordinary evidence -Carl Sagan
    Quote Quote  
  3. Or use the SendTo folder. Right click -> SendTo -> Program.
    Quote Quote  
  4. Member stax76's Avatar
    Join Date
    Nov 2009
    Location
    On thin ice
    Search PM
    Guys, the keyboard is much more efficient for tasks like this.
    Quote Quote  
  5. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Do you honestly think you are going to need to be setting this up a lot (not performing the operation, but setting up the association)?

    Otherwise, edit the registry to add a few win explorer shell context extensions.

    Something like this: https://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explor...text-menu/amp/.
    Should be able add keyboard shortcuts as well.

    However, I disagree with your assessment - sometimes (and this is probably one of those), it IS easier to do it with a mouseclick or 2.


    Scott
    Quote Quote  
  6. Member stax76's Avatar
    Join Date
    Nov 2009
    Location
    On thin ice
    Search PM
    To get started I plan to use it for ps1, jpg, png, bmp and reg. I will use Enter to edit it and Ctrl+Enter to open it.

    I think my Open with++ shell extension solution is much better than using sendto or editing registry.
    Quote Quote  
  7. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    To each his own.


    Scott
    Quote Quote  



Similar Threads