I've written a small Java program that reads all *.html and *.js files in a directory, and verifies the existence of all (recognized) file mentions.
Currently that means that all filenames directly surrounded by quotes are recognized.
For example
- Code: Select all
- document.write("<img src='buttonsetc/clock930.jpg'>");
 or
 <area shape="rect" coords="536,119,654,228" onClick="varMinus5('money')" href="dbandbarcheck3.html" title="Choose beer" />
but that should be simple to expand if needed.
A little sample of the tool at work:
- Code: Select all
- C:\Users\bosbrand\Documents\Code\Results>java -jar LinkVerifier.jar "c:\Div\Virtual Dates\Lisette\game"
 dbandbar4.html -> dbandcheck4.html link missing
 hdare102.html -> images/dare2.jpg link missing
 hdare103.html -> images/dare3.jpg link missing
 hdare3_13.html -> dare3_15.html link missing
 hdare3_5.html -> dare3_7.html link missing
 hdare9_12.html -> hare9_15.html link missing
 restgame.html -> street3.html link missing
 restgame.html -> street4.html link missing
 restgame.html -> street5.html link missing
 restgame.html -> home1.html link missing
 restgame2.html -> restquizcheck8.html link missing
 tubcheck3.html -> bedcheck2.html link missing
 tubcheck3.html -> bedroom2.html link missing
 tubcheck4.html -> bedcheck2.html link missing
 tubcheck4.html -> bedroom2.html link missing
 tubcheck5.html -> tun21.html link missing
 tubcheck6.html -> tun51.html link missing
And of course a downloadlink, just in case there actually is a demand out there...
https://rapidshare.com/files/2834667117/LinkVerifier.jar
(Hope this works, never used Rapidshare before)

 
  
  
 



 
  
  
  
  
  
  
  
 