Search found 2 matches
- 04 May 2011 01:36
- Forum: DOS Batch Forum
- Topic: Searching for a line
- Replies: 3
- Views: 4953
Re: Searching for a line
Hi Dave, Thanks for your response. I modified the script like below. The exact string is as in the script @echo off set VAL= set SAVE= for /f "tokens=2,3 delims=: " %%a in ('findstr /b /c:"Variable name : " /c:"Variable value : " "load.txt"') do ( if %%a==name...
- 03 May 2011 02:07
- Forum: DOS Batch Forum
- Topic: Searching for a line
- Replies: 3
- Views: 4953
Searching for a line
Hi, I am very new to batch scripting and i need to search a file and assign the value of a particular line to a variable. The file contents are like this. Variable name : NextFiscalYr1 Server name : chnveltss04 Application name : Database name : Variable value : FY13 Variable name : Fcst_Wk Server n...