Sign in to follow this  
Followers 0
Seth27

Show content of a folder

5 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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ÖÛ-^v+[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 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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Hi,

ha read the helpfile. :D

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Briegel

Share this post


Link to post
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
Sign in to follow this  
Followers 0