batch replace string with filename
-
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.
-
@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