Search found 53 matches

by zimxavier
22 Jan 2016 14:51
Forum: DOS Batch Forum
Topic: need to optimize my batch file [resolved]
Replies: 20
Views: 14980

Re: need to optimize my batch file

Thank you for your help @Aacini : your batch doesn't find any strings in C:\FOLDER\b\ Like i said, pipe and semi-colon don't work as separator, and apparently space either. @foxidrive : your batch doesn't work. It gives me an error message, something like "impossible to open ... .txt" for ...
by zimxavier
22 Jan 2016 08:42
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2007496

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Hi

I posted a new case here. Can i use repl.bat for improving my batch ? Or maybe you know where i can find more informations about FOR ?

Thank you
by zimxavier
20 Jan 2016 16:16
Forum: DOS Batch Forum
Topic: need to optimize my batch file [resolved]
Replies: 20
Views: 14980

Re: need to optimize my batch file

You mean without FOR ? I don't know how. findstr /l /S /M /G:STRINGS.txt /D:"C:\FOLDER\a\*.txt;C:\FOLDER\b\*.txt" > a.txt Nothing happens... a.txt is empty. Even if it works it searches each lines in each file, no ? My biggest file contains 2800 strings and all the subdirectories contains ...
by zimxavier
20 Jan 2016 11:02
Forum: DOS Batch Forum
Topic: need to optimize my batch file [resolved]
Replies: 20
Views: 14980

need to optimize my batch file [resolved]

Hello, My current batch searches each line from STRINGS.txt (as string) in any .txt files in C:\FOLDER\ (subfolders included). It says to me if each string exists and in which file. The output file is IF_STRING_EXISTS.txt . It works, but now i need to optimize and customize it, because in some cases...
by zimxavier
19 Jan 2016 09:36
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2007496

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

It works, thank you !
Sorry, i've gotten used to adding a "\" not before but after a folder (otherwise it asks me if it is a file or a folder). I don't know why this time i put it before...
Maybe FOR /R gives me an error, but it is too fast, i can't read anything.
by zimxavier
19 Jan 2016 03:46
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2007496

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Did you look at the content of FOLDER\a.txt after you ran the script? It worked perfectly for me. Bear in mind that it will only give the correct result the first time. If you run it a second time, then the result will be 100aaaaa200aaa300aaaa400aaa After i ran Batch.bat the content of a.txt is exa...
by zimxavier
18 Jan 2016 17:42
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2007496

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Thank you Dave for your help. The /F option takes the next argument as the path/file name. But you put the /I after the /F, so /F things /I is the file name, and SOURCE.txt is an invalid option, hence the error message. The solution is obvious: call jrepl.bat "_desc(.*)" "0" /i /...
by zimxavier
17 Jan 2016 11:04
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2007496

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Hello, Firstly, My batch call jrepl.bat "_desc(.*)" "" /f SOURCE.txt /o - works as expected, but i wish now add a case-insensitive (for including " _desc " and " _DESC ") : call jrepl.bat "_desc(.*)" "0" /f /i SOURCE.txt /o - Now, i have an...