Search found 175 matches

by doscode
20 Apr 2012 03:26
Forum: DOS Batch Forum
Topic: recursive search for string
Replies: 22
Views: 16098

Re: recursive search for string

I run web server on my computer and I have application that can load that files one by one, searches for text, and replaces every file. Directory structure is complicated, and there is cca 10-50 or 80 files in every folder. It takes 15 seconds to complete all edit actions by server. So it is damn fa...
by doscode
20 Apr 2012 03:12
Forum: DOS Batch Forum
Topic: recursive search for string
Replies: 22
Views: 16098

Re: recursive search for string

Your command takes too long. Maybe the command could to be faster if I would use grep. But here I fail. @echo off for /f "delims=" %%a in ('dir *.kml /b /s') do ( for /f "delims=" %%b in ('grep "</coordinates>" <"%%a"') do ( echo %%b pause ) ) pause
by doscode
20 Apr 2012 02:46
Forum: DOS Batch Forum
Topic: recursive search for string
Replies: 22
Views: 16098

Re: recursive search for string

Thank you.

PS:
But it is very slow.
by doscode
19 Apr 2012 14:21
Forum: DOS Batch Forum
Topic: recursive search for string
Replies: 22
Views: 16098

recursive search for string

Hello, can you help me with script to find all .txt files which contain more than one occurrence of "</coordinates>" ? To get a list of files.
by doscode
13 Apr 2012 02:58
Forum: DOS Batch Forum
Topic: DOS equivalent of ${variable}
Replies: 7
Views: 5228

Re: DOS equivalent of ${variable}

inname is not a command. Somebody told me to use alias command, but that's linux command.
by doscode
13 Apr 2012 01:22
Forum: DOS Batch Forum
Topic: DOS equivalent of ${variable}
Replies: 7
Views: 5228

Re: DOS equivalent of ${variable}

Nobody understands my question? I don't ask how to set global variable PATH. I ask how to evaluate/ perform command and set its output to variable. I simplified the original code before posting it here inname=`convert image -format "%t" info:` convert image.jpg ..... ${inname}_%d.png
by doscode
12 Apr 2012 01:32
Forum: DOS Batch Forum
Topic: Binary converter
Replies: 10
Views: 16481

Re: Binary converter

I ignore if jeb or dave or another one of the experts had developed a method to generate all control characters in a Batch file... That was not my target. I wanted to find some program, that could enable me to read the binary path from the registry. People here told me it is unicode, so it is a lit...
by doscode
12 Apr 2012 00:21
Forum: DOS Batch Forum
Topic: DOS equivalent of ${variable}
Replies: 7
Views: 5228

Re: DOS equivalent of ${variable}

Should I use SET /A alias?
by doscode
11 Apr 2012 15:44
Forum: DOS Batch Forum
Topic: DOS equivalent of ${variable}
Replies: 7
Views: 5228

DOS equivalent of ${variable}

How to write linux bash

Code: Select all

${path}
syntax in DOS?

Code: Select all

set "path=mypath"
convert image.jpg -resize 50% ${path}image.png
by doscode
11 Apr 2012 12:17
Forum: DOS Batch Forum
Topic: Binary converter
Replies: 10
Views: 16481

Re: Binary converter

Anyway what encoding is this: 4D 00 61 00 70 00 73 00 32 00 42 00 67 00 6C 00 2E 00 65 00 78 00 65 00 00 00 49 00 3A 00 5C 00 5F 00 56 00 0C 01 6A 00 69 00 68 00 5C 00 5F 00 45 00 58 00 54 00 52 00 41 00 00 00 It is from Windows register (and its value is path). I use Windows1250 on my system and I ...
by doscode
11 Apr 2012 10:22
Forum: DOS Batch Forum
Topic: Binary converter
Replies: 10
Views: 16481

Re: Binary converter

Sure it helps! Thanks. What does mean "LF" and "CRLF" ?
by doscode
11 Apr 2012 09:10
Forum: DOS Batch Forum
Topic: Binary converter
Replies: 10
Views: 16481

Binary converter

I looked internet if there is some example how to make converter from binary to text and from text to binary. I have found this video http://www.youtube.com/watch?v=gEl5yzhcfsw and tried to rewrite the script. I did not see all parts of the video, because some parts of the code are not visible. I do...
by doscode
02 Apr 2012 02:19
Forum: DOS Batch Forum
Topic: tabulators
Replies: 23
Views: 18232

Re: tabulators

Aascini helped me to finish the reading part of my reading script. I changed !TAB! for %TAB%. [quote="Aacini"] @echo off setlocal EnableDelayedExpansion if "%1"=="" ( IF EXIST "..\_install\activate all regions.txt" ( SET FILE="..\_INSTALL\activate all reg...
by doscode
01 Apr 2012 13:26
Forum: DOS Batch Forum
Topic: tabulators
Replies: 23
Views: 18232

Re: tabulators

I preffer complicate programming than complicate editing. And it is hard to stop saying tabulator, when it is in my language saying so.
by doscode
01 Apr 2012 13:02
Forum: DOS Batch Forum
Topic: tabulators
Replies: 23
Views: 18232

Re: tabulators

I don't want to complicate the programming and editing with quotes. I like tabs it really looks good in notepad.