Community
    • Login

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

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 3 Posters 843 Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors