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
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