Seth27 Posted July 14, 2006 Posted July 14, 2006 Hi, I am new here and my english isn't very good, but I try. I want to make a script, that can show me the content of a special folder, for example the content of C:\programme The content should be seen in a listbox or something else. Have somebody of you an idea, how I can start. Do somebody know a website, where I can see a list of the whole codes there are. I only have programm little tools and I am a beginner in coding. Thank you
Xenobiologist Posted July 14, 2006 Posted July 14, 2006 (edited) Hi, you can start with this: #Include <File.au3> #Include <Array.au3> $FileList=_FileListToArray("C:\Programme", "*.*", 0) ; change the 0 to 1 or 2 for only Files/Folders If (Not IsArray($FileList)) and (@Error=1) Then MsgBox (0,"","No Folders Found.") Exit EndIf _ArrayDisplay($FileList,"$FileList") oÝ÷ ØGbµ8b²wvÆÞµ¤èr^¶«Ê¡j÷zÖÛ-j»^v+pØ[zÖ®±ëaƢʫ±Êâ¦Ö®¶s`¤bWFôEfW'6öâfwC²gV÷C³2ãããgV÷C²FVâ ×6t&÷cBÂgV÷C´æfògV÷C²ÂgV÷Cµ67&BgV÷C²fײ67&DæÖRfײgV÷C²7F'FVBâ$UDÖöFRb333²gV÷C²fײ5$ÄbfײgV÷CµfW'6öâ¢gV÷C²fײWFôEfW'6öâ¤VÇ6TbWFôEfW'6öâÒgV÷C³2ãããgV÷C²FVâ ×6t&÷cBÂgV÷C´æfògV÷C²ÂgV÷Cµ67&BgV÷C²fײ67&DæÖRfײgV÷C²7F'FVBâæ÷&ÖÂÖöFRb333²gV÷C²fײ5$ÄbfײgV÷CµfW'6öâ¢gV÷C²fײWFôEfW'6öâ¤VæD` So long, Mega Edited July 14, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Seth27 Posted July 14, 2006 Author Posted July 14, 2006 Thank you very much. It runs!!! Now I have another question... What does this mean: #Include <File.au3> #Include <Array.au3> I don't know this files? What is the whole purpose of that?
Xenobiologist Posted July 14, 2006 Posted July 14, 2006 Hi, ha read the helpfile. Somebody already wrote some great funcs, so you needn't to reinvent the wheel. The lines include the funcs so that you can use the stuff written in there. Go on ... So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Briegel Posted July 14, 2006 Posted July 14, 2006 (edited) Welcome,in your 'AutoIt3\plugin' folder you have somey User Defined Functions (UDF) like 'File.au3' or 'Array.au3'. With this you have more special function to use. #Include <File.au3> #Include <Array.au3>This means you load in addition the two UDF's to your script and you're able to use the appendand functions.Briegel Edited July 14, 2006 by Briegel
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