Jump to content

If file exsist


Recommended Posts

Hi all...

I'm making a script whit the following lines in it

If FileExists(@ScriptDir & "\file01.bmp") Then
    $path = (@ScriptDir & "\File01.bmp")
Else
    For $i1 = 0 to 9 step 1
    For $i2 = 0 to 9 step 1
        $path = (@ScriptDir & "\File" & $i1 & $i2 &".bmp")
EndIf

as you can see isn't it mush and not working :huh2:

I hope it's readeble for you guys but I wanna use a decending path number iff file 01 is exsisting.

So iff file01 exsist use file02 otherwise 03 ~....~ otherwise 11, 12, 13 etc.

Could somebody help me whit this?

thnx in advanced ;)

Edited by FMS

as finishing touch god created the dutch

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...