foxidrive wrote:Dmmn wrote:If you tell us exactly what you want to do, and what filetypes to use
Best way to explain it is this example:
I have a folder which stores in it 10 application files (.exe, .msi), for each file there is a description file, or a review. Its usual extension is .log, .txt, .rev, .rep (usually they are chosen by a third party) or other easy-to-read-as-text file (which can be interpreted as a text file). I want to replace in all these description files various key words like author (Jean instead of John). (I can define the keyword to replace inside the script)
So you have a set of application files. And an associated set of text files.
Does each application file have only one text file?
Is the application and text file the same filename, with different extensions?
Can you use a free third party tool for the search/replace?
Please find answers below:
So you have a set of application files. And an associated set of text files.
Does each application file have only one text file?
It's odd that you're focusing on that aspect

No, it's not necessarily a must that each application file has a corresponding text file. I'm only focusing on the text-like files and disregarding the application-type ones.
Is the application and text file the same filename, with different extensions?
Nope
Here's a more detailed example:
002495.exe
rev-002495.01042012.txt
002234.exeBI_NJ_984_CI_S.msi
app_log_rev.BI_NJ_984_CI_S.22102011.log
BI_NJ_989_DI_T.msi
app_log_rev.BI_NJ_984_CI_S.10122011.log
fxfv995310900.exe
2nd_results_attempt_fxfv995310900_15092012.rep
review_this.please.80041993.exeNow, let's say all non-executable files contain a similar structure (this is not relevant). I want to collect them all in a search:
rev-002495.01042012.txt
app_log_rev.BI_NJ_984_CI_S.22102011.log
app_log_rev.BI_NJ_984_CI_S.10122011.log
2nd_results_attempt_fxfv995310900_15092012.rep
now, in all of these I would want to find the string "John" and replace it with "Jean".
Inside the script I will search for all extension types, and collect whatever I find, I wouldn't find a breaking point the fact that one of my file types was not found in the initial search.
Can you use a free third party tool for the search/replace?
Nope, tried, searched for such, no luck, total commander only finds the string and displays the results, other can do this but process one file at a time, which is killing me in case of hundreds of files. I'm planning on using this on win OS, where no perl/python/unix is present so my tool-script must be an executable (.bat, .cmd, .exe) file.