Search found 2 matches

by ahshan.md
20 Apr 2011 00:37
Forum: DOS Batch Forum
Topic: infinte loop
Replies: 3
Views: 5133

Re: infinte loop

Hi aGerman



Thanks for the help
by ahshan.md
19 Apr 2011 11:33
Forum: DOS Batch Forum
Topic: infinte loop
Replies: 3
Views: 5133

infinte loop

Hi All

Kindly explain as to why the loop runs infinitely

@echo off
set /a count=1
:loop
if exist d:\p.txt (
echo file found
) else ( if count equ 10 (
goto endloop
) else (
set /a count=%count%+1
echo %count%
goto loop
)
)
:endloop




Thanks & regards
Ahshan