Saved Bookmarks
| 1. |
Solve : find replace help needed? |
|
Answer» I want to replace
with Here is what i tried for /f "tokens=* delims= " %%a in (%scriptsdir%/Mobilebranchota.html) do ( set str=%%a IF !str!==^
set str=!str:^
%BUILD_NUMBER%^^^ !echo !str! >> %scriptsdir%/branchota1.html "listview" data-divider-theme="d" data-inset="false">= Can some one help meNo need for the multiple posts... It's also not a good idea to use an e-mail ADDY for a User name... Unless you want your Inbox barraged with SPAM...Try something like this (UNTESTED): Code: [Select]@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in (' TYPE "%scriptsdir%/Mobilebranchota.html" ') do ( set str=%%a IF "!str:~0,14!"=="<ul data-role=" ( >>"%scriptsdir%/branchota1.html" echo ^<ul data-role="listview" data-divider-theme="d" data-inset="false"^> >>"%scriptsdir%/branchota1.html" echo ^<li^>^<a href="https:google.html" data-transition="slide"^> >>"%scriptsdir%/branchota1.html" echo ^<img src="%imgpath%orange.png" class="ui-li-thumb" /^> >>"%scriptsdir%/branchota1.html" echo ^<h3 class="ui-li-heading"^>%BUILD_NUMBER%^</h3^> >>"%scriptsdir%/branchota1.html" echo ^<p class="ui-li-desc"^>%BUILD_NUMBER%^</p^>^</a^>^</li^> ) else ( >>"%scriptsdir%/branchota1.html" echo(%%a ) )If you continue to re-post the same request over and over they will be removed. Last warning. This is not live chat. patio. |
|