Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Plugin Development
    3
    4
    66
    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.
    • MarioRosi
      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

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

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

        I assume you are looking for nppm-getfilename.

        PeterJones 1 Reply Last reply Reply Quote 1
        • PeterJones
          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
          • MarioRosi
            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
            Copyright © 2014 NodeBB Forums | Contributors