Jump to content

Count from 00001 to 14315


Recommended Posts

#include <Inet.au3>

For $i = 00001 To 14315

InetGet("http://blender-mirror.kino3d.org/peach/png/big_buck_bunny_" & $i & ".png", "D:\peach\big_buck_bunny_" & $i & ".png")

Next

Hey guys is there any way to make this work so it start with 00001?

Thank you!

Link to post
Share on other sites

Since StringFormat() is quite slow, you could also do it the old-fashioned way:

$timer1= TimerInit()
For $i = 1 To 50000
    $i = StringFormat("%05d", $i)
Next
$timer1 = TimerDiff($timer1) / 1000

$timer2= TimerInit()
For $i = 1 To 50000
    $i = StringRight("00000" & $i, 5)
Next
$timer2 = TimerDiff($timer2) / 1000

MsgBox(0,"",$timer1 & @CRLF & $timer2)
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...