Search found 5 matches
- 15 Nov 2012 03:52
- Forum: DOS Batch Forum
- Topic: Find & Replace string in all files within the current folder
- Replies: 12
- Views: 17733
Re: Find & Replace string in all files within the current fo
can you help me identify in the replace script below the in parameters? I would like to have your part of code along with the script in one batch file. Therefore, I was thinking of inputting the oldstr and newstr manually (hardcode them) and the "File" param would be the output one in you...
- 15 Nov 2012 01:42
- Forum: DOS Batch Forum
- Topic: Find & Replace string in all files within the current folder
- Replies: 12
- Views: 17733
Re: Find & Replace string in all files within the current fo
The Batch file below is a quick and dirty solution that find all files in current directory that have anyone of several extensions given in a FOR command set, and process each file found with the program you indicate in your link above: @echo off for %%e in (log txt rev rep) do ( for %%f in (*.%%e)...
- 14 Nov 2012 07:03
- Forum: DOS Batch Forum
- Topic: Find & Replace string in all files within the current folder
- Replies: 12
- Views: 17733
Re: Find & Replace string in all files within the current fo
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...
- 14 Nov 2012 06:40
- Forum: DOS Batch Forum
- Topic: Find & Replace string in all files within the current folder
- Replies: 12
- Views: 17733
Re: Find & Replace string in all files within the current fo
The funny bit is that you are telling us how to do it, but you have no idea how to do it. Why use an array? is my first question. If you tell us exactly what you want to do, and what filetypes to use, and the directory depth, then let us decide how to do it. In your example you use a recursive scan...
- 14 Nov 2012 04:15
- Forum: DOS Batch Forum
- Topic: Find & Replace string in all files within the current folder
- Replies: 12
- Views: 17733
Find & Replace string in all files within the current folder
Hi guys, first of all, please excuse my numb language in batch scripting, I'm obviously newbie . What I'm trying to do is do a find&replace string on some specified files within the current directory. (the directory may contain more files than the ones I'm writing in). Basically run the batch in...