Replace folder path using wildcard
-
Hi,
I am looking to search/replaces in files, I want to use a wildcard to identify the folder path and replace it with a common path, this will allow me to delete all other copies of a file from the server.Search path
K:*********\D_V562X-5.stl (wildcard path)Replacement path
K:\Temp\D_V562X-5.stl (common pathI only have basic knowledge of notepad++ so it will need spelling out to me 🤣
Thanks in advance
-
@jonnieg4rdner said in Replace folder path using wildcard:
Try:
Find:
(?-s)^K:\\.*\\D_V562X-5.stl
Replace:K:\\Temp\\D_V562X-5.stl
Search mode: Regular expressionLearn more HERE.
-
@Alan-Kilborn said in Replace folder path using wildcard:
K:\Temp\D_V562X-5.stl
Hi Alan,
Thanks for getting back to me but your suggestion isnt working, some of the paths will have spaces, hyphens and maybe underscores (not sure if this is relevant)
I have shortened the folder length but the format below is correct, not sure if having <File> at the start and </File) at the end makes a difference.<File>K:\Customers\A B\PROJECT\Data\12 3-4\V\D_V562X-1.stl</File>
Thanks
-
Probably just remove the
^from my Find expression.See more about posting search-and-replace questions HERE.
-
@Alan-Kilborn Perfect!!!
Thanks for your help.
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