Posted by swarn on October 24, 2007 at 14:04:07:
In Reply to: DOS, Batch Programming help needed posted by Joel on September 19, 2007 at 20:05:31:
: Hi All,
: I am new to Batch programming but I have been writing batch files for the last 2 months.
: I would like to write a batch file that would search for a character in another batch file (below), and replace it with a different character. The character that I would like to replace is the number '1' right before 'i 3'. I need to replace this character(number) 784 times, going from 1 to 784. Please, if you could provide an example that would be very helpful.
:
: AutoSNMP.bat
: -----------------------------------------------------------------------------------------------------------------------------------------------
: echo off
: call C:\TestAutomation\Products\MM2000\DS3EADM\DiagTest\T1Test\IP_Address.bat
: rem Direction: Drop
: rem Clear Error
: %SOID% 1.3.6.1.4.1.11782.2.3.2.2.3.5.3.2.1.11.1.3.1 i 3
: REM 1sec Delay
: PING 1.1.1.1 -n 1 -w 1000 > NUL
: rem Inject Error
: %SOID% 1.3.6.1.4.1.11782.2.3.2.2.3.5.3.2.1.11.1.3.1 i 2
: ------------------------------------------------------------------------------------------------------------------------------------------------
: I do appreciate all the help that you can provide me. You can just reply via my email or on this forum.
: Thank you,
: Joel