I require the ability to calculate Bandwidth on a Windows Server 2003 and that the ability to do this is either done directly with Classic ASP or Classic ASP is used to trigger a background service that will run on a Windows Server 2003.
the code should work on being provided an IIS 6.0 id such as
W3SVC/56464661185
and the amount of bandwidth be calculated and then updated into a MySQL database.
This needs to be in a Classic ASP function format of coding as below as an example
function calculate_bandwidth(iis_id,log_files_directory,date_to_calculate)
'' example type of variable input iis_id = W3SVC/56464661185
'' example type of variable input log_files_directory = C:\Domains\website\logs\W3SVC56464661185\
'' example type of variable input date_to_calculate = 2008-5-15
'' CODE GOES HERE
'' Calculates the bandwidth
'' Updates a MySQL Database
end function
If this can be trigger from ASP to send a script to a .VBS file then this would be OK as well. it needs to be able to calculate the bandwidth on a IIS ID basis, that is the most important part.
The script basically must check for the date the function is provided.