Community
    • Login

    [c#] how to set/change current filename/fileextension

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 3 Posters 268 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.
    • MarioRosiM
      MarioRosi
      last edited by

      Hello,

      in my plugin load textfile width datas in lines and change the format from the datas to another.
      The filename, or more precisely the fileextension must i change to another.

      How can i do that?

      regarts Mario

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @MarioRosi
        last edited by

        @MarioRosi said in [c#] how to set/change current filename/fileextension:

        I assume you are looking for nppm-getfilename.

        PeterJonesP 1 Reply Last reply Reply Quote 1
        • PeterJonesP
          PeterJones @Ekopalypse
          last edited by PeterJones

          @MarioRosi ,

          To add to what @Ekopalypse said,

          I assume you are looking for nppm-getfilename.

          I would add: use that to get the old name/extension, and use NPPM_SAVECURRENTFILEAS for saving the file with a new extension.

          1 Reply Last reply Reply Quote 1
          • MarioRosiM
            MarioRosi
            last edited by MarioRosi

            Hello Ekopalypse and PeterJones,

            thanks for your suggestions. Now i create a new tab and copy the new format into that tab.
            Then can decide the user how to save the file.

            regards Mario

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