• Login
Community
  • Login

What parameter is Notepad++ using to open files

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 4 Posters 617 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.
  • L
    LtSlimFisherman
    last edited by Mar 3, 2023, 7:53 AM

    Hi
    I am currently working with EPM manager and I’m trying to block opening of a certian file for example “file.config.xml” via notepad++.

    I cannot figure out what parameter is notepad++ using when i right click on file -> “Edit with notepad++”
    What process runs when notepad++ is opening a file in the manner I described above?

    Can someone help me?

    E A P 3 Replies Last reply Mar 3, 2023, 8:29 AM Reply Quote 0
    • E
      Ekopalypse @LtSlimFisherman
      last edited by Ekopalypse Mar 3, 2023, 8:29 AM Mar 3, 2023, 8:29 AM

      @LtSlimFisherman

      I am not sure I understand what you are looking for.
      What you describe is a shell extension for the explorer process that is stored in the registry.
      Once you click on it, explorer.exe starts the associated program,
      and the parameter used is probably "%1" (with or without quotes),
      but that’s true for any program that runs on Windows, hence my confusion.

      1 Reply Last reply Reply Quote 2
      • A
        Alan Kilborn @LtSlimFisherman
        last edited by Mar 3, 2023, 12:10 PM

        @LtSlimFisherman said in What parameter is Notepad++ using to open files:

        block opening of a certian file

        I certainly don’t get involved in this type of thing on a Windows machine (no need), so maybe I’m off-base, but wouldn’t it be more reasonable to set OS-level permission on the file such that active user can’t read it?

        Or, if you have a different need, I think you are going to have to say some more about what the exact need is… which basically was stated well by @Ekopalypse when he said “I am not sure I understand what you are looking for.”

        1 Reply Last reply Reply Quote 3
        • P
          PeterJones @LtSlimFisherman
          last edited by Mar 3, 2023, 2:00 PM

          @LtSlimFisherman ,.

          And moreover to the excellent points by @Ekopalypse and @Alan-Kilborn , having “Edit with Notepad++” not show up for a certain file or filetype in Windows Explorer in no way prevents the user from opening Notepad++ and doing File > Open or equivalent, and cannot prevent that.

          As they said, the only way to prevent the user from opening file.config.xml in Notepad++ is to set the permissions on the file so they cannot even read the file. If all you want is to prevent them from saving changes, then you just need to remove write permission for the user.

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