Page 1 of 1

How can I make this file only out put 30 files

Posted: 26 Oct 2011 16:45
by galaxyprogramming
I have this batch file:

@echo off
:A
cd %current%
echo >%random%.%random%
goto A


Is it possible to limit the amount of files it outputs?

Re: How can I make this file only out put 30 files

Posted: 28 Oct 2011 07:21
by Acy Forsythe
Put it in a FOR /L Loop like this:

Code: Select all

FOR /L %%a IN (1,1,30) DO (

Commands

)