agent47 Posted December 18, 2009 Share Posted December 18, 2009 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 More sharing options...
bogQ Posted December 19, 2009 Share Posted December 19, 2009 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 connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now