Jump to content

Mapping directory and file


Cyber
 Share

Recommended Posts

I search in example area but i dont found this script :)

I need too map a directorys and files in a txt file

can you please help me? :D

Thanks!

Edited by Cyber
Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key
Link to comment
Share on other sites

Hi,

please explain a bit more and show us what you got.

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

Link to comment
Share on other sites

Example

directory programs

txt file:

programs

----autoit

-------- autoit2

------------- autoit2.exe

---------autoit.exe

---------autoit.dll

-----games

----------starcraft

---------------stacraft.exe

----------------main.ini

ecc....

:)

Edited by Cyber
Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key
Link to comment
Share on other sites

The following is the function to find all the folders within a specified directory, including all the sub-folders at any sub-levels. if you also want to get all the files, you just need to change or add a little code to the function.

Func ListAllFolder($Folder, $MaxFolderDepth)
    $FolderList = _FileListToArray($Folder, "*", 2);only finf folders
    If IsArray($FolderList) And $FolderList[0] >= 1 Then
        For $j = 1 To $FolderList[0]
            _ArrayAdd($AllFolderList, $Folder & "\" & $FolderList[$j])
            $AllFolderList[0] = $AllFolderList[0] + 1
        Next
    EndIf
    $FolderCountDepth = StringReplace($Folder, "\", "");test how deep of the current folder depth
    $DepthNumber = StringLen($Folder) - StringLen($FolderCountDepth);count the folder depth
    If $DepthNumber <= $MaxFolderDepth Then $rrr = 999
    If IsArray($FolderList) And $FolderList[0] >= 1 And $DepthNumber <= $MaxFolderDepth Then
        For $j = 1 To $FolderList[0]
            ListAllFolder($Folder & "\" & $FolderList[$j], $MaxFolderDepth)
        Next
    EndIf
EndFunc

gear

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...