agent47 Posted December 17, 2009 Share Posted December 17, 2009 c:\songs\6.mp3 Bsbboys c:\songs\7.mp3 akon c:\songs\35.mp3 smith c:\songs\95.mp3 uninor c:\songs\68.mp3 Bsbboys c:\songs\22.mp3 akon This is a single text file in which i want to move the files[6.mp3] from [songs] folder to [bsbboys] by creating new folder [bsbboys]. can anyone help me how it can be done? It would be easy if you explain with the code. I am newbie so please kindly help me with it Link to comment Share on other sites More sharing options...
Skruge Posted December 17, 2009 Share Posted December 17, 2009 Have you followed Enaiman's suggestions in your other thread? [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
GEOSoft Posted December 17, 2009 Share Posted December 17, 2009 $sFolder = "c:\songs\Bsbboys\" If NOT FileExists($sFolder) Then DirCreate($sFolder) FileCopy("c:\songs\6.mp3", $sFolder & "6.mp3") Parsing the file to get each line withe the current file and the destination folder can be done with StringRegExp() but I can't do that part for you at the moment. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
agent47 Posted December 17, 2009 Author Share Posted December 17, 2009 Have you followed Enaiman's suggestions in your other thread?Hi ,I am trying on it. Link to comment Share on other sites More sharing options...
agent47 Posted December 17, 2009 Author Share Posted December 17, 2009 $sFolder = "c:\songs\Bsbboys\" If NOT FileExists($sFolder) Then DirCreate($sFolder) FileCopy("c:\songs\6.mp3", $sFolder & "6.mp3") Parsing the file to get each line withe the current file and the destination folder can be done with StringRegExp() but I can't do that part for you at the moment. Hey thnx, Let me try one it and if any error occurs post you with the code 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