Community
    • Login

    batch replace string with filename

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.5k 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 Offline
      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 Offline
        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

        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