I would like to see if I could get some assistance with a project item I have been tasked with at work. I have been requested to come up with an application map of our current code base. The code is in ASP, and what I would like to do is map out all files, and the includes within these files.
The big catch with this is that the application is held within a frameset /cringe. I've tried a number of mapping tools but none are giving me the results I need.
I was hoping someone out here might have a suggestion. I can provide more information as required.
Ok, So this may require a little bit of "messin'" to get it right. Pardon the pseudocode, it's been a while since I worked in ASP [img]/images/graemlins/smile.gif[/img]
<font class="small">Code:</font><hr /><pre>
For each file
Output the filename
Do once CheckFileForIncludes(file)
Open file for reading
Do until no more instances of includes
Perform a find for #include
For each result file
Output new indent
'Search next file for includes in it?
CheckFileForIncludes(this result File)
Will this even work? I don't know. As you said you're in framesets, so it will make things a little more complicated.
Anyway, I would suggest handling each frameset individually (by name) to make it more predictable. Once you get the initial bit of code working for a single frameset, then a new sub routine for the other stuff is probably the best way to go.
Remember the Star Wars quote:
Luke: "I can use framesets. I'm not afraid."
Yoda: "Oh, you will be. You will be."
9 out of 10 people I prove wrong agree that I'm right. The other person is my wife.