GameIDevelp Posted April 26, 2009 Share Posted April 26, 2009 Helloo ,all... I make this code to write all files after desktop into the desk.text file ... But shee dont work , I not have any ideea to do this ... I dont now how ,,, ...Can any help me ,,,to understand how to do this ... ..I appreciate any help ,,, $FileList2=_FileListToArray(@DesktopDir) If @Error=1 Then MsgBox (0,"","No Files\Folders Found.") Exit EndIf _FileWriteLog("desk.text",$FileList2) If $FileList2[0] >50 Then Box (0,"","More then 50 File...Read desk.text") ShellExecute("desk.text") Else _ArrayDisplay($FileList2,"desk-file= ") EndIf Link to comment Share on other sites More sharing options...
Valuater Posted April 26, 2009 Share Posted April 26, 2009 (edited) FileListToArray() creates an $Array, so use FileWriteFromArray() #include <File.au3> #include <Array.au3> $FileList2 = _FileListToArray(@DesktopDir) If @error = 1 Then MsgBox(0, "", "No Files\Folders Found.") Exit EndIf _FileWriteFromArray("desk.text", $FileList2) If $FileList2[0] > 50 Then MsgBox(0, "", "More then 50 File...Read desk.text") ShellExecute("desk.text") Else _ArrayDisplay($FileList2, "desk-file= ") EndIf 8) Edited April 26, 2009 by Valuater Link to comment Share on other sites More sharing options...
GameIDevelp Posted April 26, 2009 Author Share Posted April 26, 2009 (edited) I find ,,, wow great ,,, hey Valuater thanks and you ... and for replay .... .. This is Cod I use .... For $si =1 to $FileList2[0] Step 1 _FileWriteLog("desk.text",$FileList2[$si]) next Great ... Edited April 26, 2009 by GameIDevelp Link to comment Share on other sites More sharing options...
Valuater Posted April 26, 2009 Share Posted April 26, 2009 I find ,,, wow great ,,, hey Valuater thanks and you ... and for replay .... .. This is Cod I use .... For $si =1 to $FileList2[0] Step 1 _FileWriteLog("desk.text",$FileList2[$si]) next Great ... That works too... and Welcome! 8) 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