• Login
Community
  • Login

Default to 'Run as System'

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 669 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    SJ Goodson
    last edited by Jan 24, 2022, 10:05 PM

    I have my default text editor set to NotePad++.
    Love it!
    Now, can I get NotePad++ to open all clicked files in their native program (AKA: Run as System).
    I see a file in a tree, I double click on it, and BANG the file opens.
    I often have to ‘scape’ my PDF’s for text (FM will not print to a text file); so both types are in my work folders.
    Any ideas?

    P 1 Reply Last reply Jan 24, 2022, 10:17 PM Reply Quote 0
    • P
      PeterJones @SJ Goodson
      last edited by PeterJones Jan 24, 2022, 10:19 PM Jan 24, 2022, 10:17 PM

      @sj-goodson ,

      The Run > Run… menu entry will allow you to run the active filename (or anything else you type there) with an external tool.

      Run > Run… > cmd /c "$(FULL_CURRENT_PATH)", Save… = RunMyself will save that in the Macros menu so you can easily do that at any time: this will tell cmd.exe to run the current file, and cmd.exe will ask Windows OS what the default verb is, and run the file with that verb.

      That said, Notepad++ is not very good at being a binary file editor. You can try to scrape your PDF for plain text, but not every bit of stuff that looks like plain text in the binary PDF will be plain text really, and not every piece of plain text in the PDF is necessarily stored as plain text in the binary file. See FAQ entry

      –

      PS: the User Defined Commands section of the usermanual gives the list of extra “variables” ($(...)) that Notepad++ makes available to the **Run>Run… ** action. That’s where I got the $(FULL_CURRENT_PATH) variable.

      S 1 Reply Last reply Jan 26, 2022, 1:35 AM Reply Quote 2
      • S
        SJ Goodson @PeterJones
        last edited by Jan 26, 2022, 1:35 AM

        @peterjones

        Thanks for idea. I checked it out but unfortunately it misses the mark. The FULL_CURRENT_PATH is only the top Open file; not the one selected in the Folder As Workspace. So, I’d have to open the file first (a .jpg in the text editor, Ugh!, and then run the command by keystroke). Easier to right mouse-click and hit “Run By System”. I was just hoping to double click and get “Run By System” as the default.

        Thanks for taking a swing at it.
        More ideas welcomed!!

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors