Tuesday, June 15, 2010

how to create a loop using cmd

                  we can easily create a no. of file or directory using loop

                                           syntax is too easy ,man




step1) open notepad
step2) paste above code(written in red)
step3) save as any name with bat extension
example mp3.bat
double click on this ad.bat n see da magic......................

here
(1 1 10)
intialization increament/decreament max limit

as was in for loop of c.
here %%a is the variable i 've taken.........................
n it creates 10 .mp3 files

that's it............................for /l %%a in (1,1,10) do dir >>%%a.mp3


 

0 comments:

Post a Comment

 
Copyright 2009 free learn hacking tips and tricks. Powered by Blogger Blogger Templates create by Deluxe Templates. WP by Masterplan