Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Finding include files that aren't included? (2002)

    Is there an automatic way to get a list of "include" files that are NOT included?

    I'm trying to avoid writing this program:
    1. Read the names of the files in the _includes folder
    2. For each name in the list, search the local web (in HTML, if I were using the Find dialog)
    3. Display the list and the names of the files in which each is included.

    Any file that is not included somewhere is a candidate for elimination from the web.

    I dont want to do this by hand, because there are a lot of files.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Finding include files that aren't included? (2002)

    Would it be cheating to rename the folder (outside of FP) and then, in FP, look at the broken links report? I don't know if that report covers include files, so maybe this wouldn't work...

  3. #3
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding include files that aren't included? (2002)

    "cheating" you say? My motto: "You don't really know how to use a tool until you know at least three ways to MIS-use it."

    The Report doesnt cover Include files explicitly... it will be interesting to see if FP can find references in ASP statements like
    Response.Redirect "someurl"

    Stay tuned... <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  4. #4
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding include files that aren't included? (2002)

    Reports | Unlinked files doesnt tell much. For example, the status of all the 'confirmation.asp' pages is "unlinked".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •