Search found 2 matches

by simplyjaded
29 Feb 2008 08:54
Forum: DOS Batch Forum
Topic: Help on Grouping Commands in a Block
Replies: 2
Views: 7851

Post subject: Help on Grouping Commands in a Block

Yes, it works fine. thank you. I've got another problem though... The lines below seems to concatenate multiple words in a single line: set "text2=about another." echo %text2% But what if I've this value to be put to text2. <Data ID="999" Block="Z" Section="Z-9&quo...
by simplyjaded
28 Feb 2008 15:02
Forum: DOS Batch Forum
Topic: Help on Grouping Commands in a Block
Replies: 2
Views: 7851

Help on Grouping Commands in a Block

Hi, I'm a newbie in writing batch files. Anyways I've got this code here which really confuses me... @ECHO off set "text2=about another." echo %text2% set text1=mharz for /f "usebackq tokens=*" %%a in ("list.txt") do ( if %%a==%text2% ( echo %text2% ) else ( echo %%a ) ...