Jump to content

Whether this FOR satement is correct?


agent47
 Share

Recommended Posts

For $i = 1 to UBound ($src) - 1
    $split = StringSplit ($src [$i], "\") ; get mp3 file name, last value from array $split is filename
    FileMove($src [$i],"C:\songs" & $drt[$i] & "\" & $split [UBound ($split) - 1],8)
    Next
MsgBox(0,"","Files are Moved and directory created")

whether this for loop function is right,Because i am not able to get solution please verify it

Link to comment
Share on other sites

post your whall code becose we cant see whats $drt[$i] and maby your mistake is in $i becose you have it in this lop as an For $i var

For $i = 1 to $src[0]
    $split = StringSplit ($src[$i], "\")
    FileMove($src[$i],"C:\songs"&$drt[$i]&"\"&$split[$split[0]],8)
Next
MsgBox(0,"","Files are Moved and directory created")

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
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...