Search found 6 matches

by glenfs
03 Jul 2012 07:32
Forum: DOS Batch Forum
Topic: Escape Char not working when using , and |
Replies: 5
Views: 4245

Re: Escape Char not working when using , and |

Ed and Jeb, Thank you very much for the clarification and the solution you guys provided. It is working fine now. :)
Really Appreciate it.
by glenfs
03 Jul 2012 06:33
Forum: DOS Batch Forum
Topic: Escape Char not working when using , and |
Replies: 5
Views: 4245

Re: Escape Char not working when using , and |

Hi Jeb, Thank you for the response, I used the quotes like: set "str=%str:,=|%" And also tried the second method u mentioned, set str=!str:,=^|! But it is still not working, Here is the part of the sample code i wrote: :NEXT set "str=%str:,=|%" echo.%str%>>gds32.txt goto :eof
by glenfs
03 Jul 2012 05:49
Forum: DOS Batch Forum
Topic: Escape Char not working when using , and |
Replies: 5
Views: 4245

Escape Char not working when using , and |

Hi people, I have the following code, But the conversion of , to | does not happen when i use the following code. It does not woek even when i use set str=%str:^,=^|% Can anyone help as to what i am missing? set file=GDS.txt for /f "tokens=*" %%- in (%file%) do ( set str=%%-&&call ...
by glenfs
03 Jul 2012 04:16
Forum: DOS Batch Forum
Topic: Extract data between 2 words.
Replies: 5
Views: 4877

Re: Extract data between 2 words.

Thank you Ed, :)

I had another question, from your example if i have multiple *.txt files(Input files) and i need to do the same (extract data between SELECT and FROM ) from the different file and push the data to different output files , could we be able to do that?
by glenfs
03 Jul 2012 03:54
Forum: DOS Batch Forum
Topic: Extract data between 2 words.
Replies: 5
Views: 4877

Re: Extract data between 2 words.

Hi einstein1969, Thats great..
Thank you very much. That resolved my question. :)
by glenfs
03 Jul 2012 01:38
Forum: DOS Batch Forum
Topic: Extract data between 2 words.
Replies: 5
Views: 4877

Extract data between 2 words.

Hi All,

I am new to Batch programming, i needed to write a program which extracts data from a text. The text would contain words select and From and i need to extract text between the words Select and From and assign it to a variable.

Could you please help?

Regards,
Darryl.