[wd_asp elements=’search’ ratio=’100%’ id=1]

Batch file loop from text file value

3rd September 2014

Random Coding

random coding category codehaven

this gets a single value (ie 23) and will loop a task that many times. Just change companys.php to where the value is stored.

for /f "delims=" %%x in (companys.php) do set companys=%%x

echo %companys%

for /l %%x in (1 1 %companys%) do (
START "" "c:\wamp\bin\php\php5.5.12\php.exe" -f "C:\wamp\www\googleyesterday-task.php"
timeout /t 10
)