dilligafog Posted August 3, 2013 Posted August 3, 2013 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 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
Edano Posted August 3, 2013 Posted August 3, 2013 (edited) welcome, you could start with: _FileListToArray() . (click on the function for help) E. Edited August 3, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]
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