設定累加set count=0
:Again
rem Do something here....
timeout /t 10
set /a count=count+1
if not "%count%"=="30" goto Again
轉貼來自 記載著 will 在網路世界的學習心得與技術分享
http://blog.miniasp.com/post/2010/11/27/Windows-Server-2008-R2-Active-Directory-Troubleshooting.aspx