Community
    • Login

    batch replace string with filename

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.1k 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.
    • derezu pezupopD
      derezu pezupop
      last edited by

      hello, i’ve used notepadd++ for a while but i haven’t done anything too complicated, and i need to make roughly 120 files for a personal project. I have duplicated one file identically several times, so all contain the same contents. All of the files have different filenames. About 3 strings need to be replaced with the filename excluding extension

      so it’s one string on 3 different lines, let’s say “type_light” which I need to change into the filename of each file.

      How can notepad++ replace each one with the filename in a batch operation?

      This also would have to be done multiple times with multiple batches of files of similar amount.

      Terry RT 1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R @derezu pezupop
        last edited by

        @derezu-pezupop said in batch replace string with filename:

        How can notepad++ replace each one with the filename in a batch operation?

        I’m not on a PC at the moment but there was a post I was involved in solving some time ago to add filename to files. Have a read of
        https://community.notepad-plus-plus.org/topic/17035/batch-function-need-to-add-filename-at-the-end-of-each-paragraph
        and see if maybe it could, with some alterations, provide the solution for you.

        Terry

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