Jump to content
Sign in to follow this  
jeantje

Count from 00001 to 14315

Recommended Posts

jeantje

#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!


Share this post


Link to post
Share on other sites
Spiff59

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)

Share this post


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
Sign in to follow this  

×