Coldfusion wrote:
>  
> Besides doing a DIR on the images folder and then searching through each
> template, is there any other way?
>  

One other way would be to get a list of files that have been called from 
the images directory in your web server logs.  There is a command line 
utility from MS called Log Parser...
http://www.logparser.com/
with that you can run a query using SQL like syntax to search for 
anything called from your images directory...the syntax will be 
something like...

"c:\program files\log parser 2.2\logparser.exe" "SELECT DISTINCT 
cs-uri-stem INTO tblParsedLogs FROM C:\PathToYourLogFiles\ex0611*.log 
WHERE cs-uri-stem LIKE '/images/%%" -o:SQL -server:localhost 
-database:mydb -driver:"SQL Server" -username:sa -password:password 
-createTable:ON

Note that the above is dumping it directly into a SQL Server table, 
which makes it nice for further processing...you can also direct it into 
a file by taking off the database stuff at the end and changing the 
tblParsedLogs in the SQL statement to something like ParsedLogs.csv.

Then you could compare the output of that to a cfdirectory...this may 
get images where the name is dynamically generated in code, but also 
might miss images that are rarely called.

Note that this does not just parse IIS logs, it will parse anything in 
the W3C extended format (as well as all kinds of other logs, text files, 
xml files, etc...not just web server logs).  Also note that you should 
be able to send the output to any database that you have a ODBC driver 
for...although apparently there are datatype issues sometimes...there is 
a article in the KB in the link above regarding that.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262398
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to