Jump to content

Recommended Posts

Posted

Absolute newbie at AutoIt .... still reading docs ... will it be possible to start at the top of a directory structure, read the whole tree and convert into xml, then search the xml for keywords? TIA,

regards,

Mic.

Posted

Yes.

First look at _FileListToArray() <-helpfile or depending on your needs,

Stir in a bit of logic as you loop through the array.

I dont know anything about xml so this sample might seem silly, but will give you an idead as to where to get started.

#include <Array.au3>
#include <File.au3>
$aArray = _FileListToArray("C:\my\directory\location")
_ArrayDisplay($aArray)
Local $sString = ""
For $i = 1 To $aArray[0]
    $sString &= "<File>" & $aArray[$i] & "</File>" & @CRLF
Next

MsgBox(0,"Result",$sString)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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
  • Recently Browsing   0 members

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