Search found 175 matches

by doscode
01 Jul 2012 07:19
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

To understand your scripts from page 3. I have saved it to 3 files: 1) foxidrive_short (parse without sed).bat the first script on this page. It uses htmstrip + vbs This looks as the best choice for me because it is short code and it does need sed. 2) foxidrive_pure+vbs (parse without sed).bat This ...
by doscode
30 Jun 2012 14:18
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

What do I need to succesfuly run the script with WHS, vbs, regex and so on? I have Win XP. I tryied to install Windows Script which should containt WHS and VBS but it told me that I have the service pack installed and I don't need it. But how can I test if I have all things installed? I can run the ...
by doscode
30 Jun 2012 04:36
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

When you use
/border=b
so there is spaces as delimiter... But this is problem. The | as delimiter was good. When space is delimiter, so High +KA would be devided in two columns. Now I see still many spaces there.
by doscode
30 Jun 2012 01:55
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

Thanks. This is on my screen: HTMSTRIP (/? for help) (c)2002 Bruce Guthrie, Wayne Software Rev 08/10/2002 Options: /WIDTH=80 /-FORCE /RULE=- /-RSPACE /A=NONE /IMG=NONE /MAP=NONE /EXT=.OUT /INDENT /INPUT /-SPACES /TABLE /-WARNINGS /-ALL /BORDER=T /BUFF=1 /Cp:\server\loop\ /ATTR=-H-S 09:51:51: Using s...
by doscode
29 Jun 2012 13:29
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

IP, port, country, type (http/https/ftp), anonymity
My final target is to gain the information for http proxy with the High +KA information.
by doscode
29 Jun 2012 03:17
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

The site is hidemyass.com/proxy-list/ Doscode, I must agree that you do refuse to listen to people that might know techniques that can help you. Somehow you want to achieve the solution by yourself... and I can understand the enjoyment in doing it yourself, but maybe in this project you can use the ...
by doscode
29 Jun 2012 02:36
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

Ed Dyreen wrote:'
In a previous topic, I posted a solution that accomplished what you wanted without the need for 26 tokens.

I am not sure about which post do you speak. Maybe I have overlooked something.

Also I did not know there will be so many tokens. On the begin, I though about A-J characters could be enough.
by doscode
29 Jun 2012 02:35
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

foxidrive wrote:Yes you can use more ascii characters - they follow the ascii table....

Beware the poison characters.

So can I use [,\,] as the characters after Z? Or backslash is poison character?
by doscode
29 Jun 2012 01:54
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

Whole problem is in parsing the html file. The line with IP addess contains many of tags, like spans and divs. So when I use this code to parse it: REM For all files of proxy list 3 FOR %%? IN (%proxy_list_3%) DO ( echo %%? FOR /F "tokens=1-27 delims=<>" %%A IN ('grep -B 1411 -E "</ta...
by doscode
29 Jun 2012 01:40
Forum: DOS Batch Forum
Topic: how to do replace in file?
Replies: 3
Views: 3208

Re: how to do replace in file?

Thank you.

I finally decided to change the code, but it helped me.

Code: Select all

FOR /f "tokens=*" %%t in (%1) do (
   SET S=%%t
   if defined S (
     SET S=!S:^<span^>^</span^>=!
     >>$tmp$ echo !S!
   )
)
by doscode
29 Jun 2012 00:04
Forum: DOS Batch Forum
Topic: how to do replace in file?
Replies: 3
Views: 3208

Re: how to do replace in file?

@e4nd:
I think this code is great because it removes white spaces from begin of every line which I also need. Thank you.
by doscode
28 Jun 2012 13:40
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

foxidrive wrote:No. Use a, b or c


Using ? is ill advised. There is no advantage to using ? only drawbacks.


I have all letters reserved for tokens A-Z.

Maybe I could use more letters [a-zA-Z] but I don't know if is it possible? I mean If I type
for %%a IN (..) DO .. can I access %%Z in 28th token?
by doscode
28 Jun 2012 10:21
Forum: DOS Batch Forum
Topic: how to do replace in file?
Replies: 3
Views: 3208

how to do replace in file?

Is any chance to do this in CMD? I have html file where I would like to replace some strings like this:

Code: Select all

<span></span>.

would be replaced by

Code: Select all

.<span>

Edit:
I found better to completely remove

Code: Select all

<span></span>
from the file.
by doscode
28 Jun 2012 08:20
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

Thanks. I will use

Code: Select all

set $=%%~?
instead $
by doscode
28 Jun 2012 07:59
Forum: DOS Batch Forum
Topic: Double quotes in For loop input [SOLVED]
Replies: 42
Views: 46586

Re: Double quotes in For loop input [SOLVED]

Why I cannot remove quotes from the token which is named $? echo %%$ set $=%%~$ The dolar token has these values: "td" "span" "span class=82" "41" "/span" "." "span style=display: inline" "35" "/span" "spa...