Sign in to follow this  
Followers 0
dilligafog

Seeking advice on file "crawler"

2 posts in this topic

Hey guys,

here is a little background on what I'm trying to do.  I'm working on converting a windows database automation system to a unix one.  The windows system consists of 3-4 file types like .bat and other database command files...  there are hundreds of them. As a programmer I'm always looking for ways to script my job  :shifty:   I mostly write shell code but autoit is now my favorite for windows programming.  So what I'm looking for is some advice on the best way to make connections between the files. 

An example would be something like : script1.bat calls script2.bat which then calls load_db.db. inside load_db.db there are database commands I would capture.

in shell I would probably do the following steps assuming .bat is the starting point for all scripts. 

search for .bats and make a list

for each .bat

       look for other files (txt, csv, bat, db...)

       create list of those in order (with whatever command they were using with that file)

               for each sub file

                        if its a bat do another search

                        if its a db look for commands.

 

Any advice on commands or order of operations or examples would be nice.

Thanks,

Phil

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

welcome,

you could start with:

_FileListToArray()

.

(click on the function for help)

E.

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

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