-
Hey Guys, I just developed a Activex dll that can
Read + analyse and give you the details of the modem logs
created by windows whenever u use modem to connect to internet.
(Yes..I still use dial up for internet)
Note: You should have windows generate modem log file as an
appending log file(so that there are many modem sessions).
Control Panel -> modems -> Properties -> Connection tab
-->advanced -> check append to log.
Inspired by ADO recordsets, i call the modem sessions as Sessionset.
There is a method to read any modem log generated by windows.
The properties of each session like started date,time and end
date,time - Duration and downloaded bytes,uploaded bytes can be easily
accessed using this Modem log Analysis library 1.0.
If You are Interested in testing the dll.
Download here
MLOG.ZIP
Thank You!
-
Example Code !
ooops...I forgot to add an Example...
Here it is...
To calculate the The Total Megabytes Downloaded by the modem
from the date from which the log started.
Code:
Private Sub Command1_Click()
Dim Dl As Long
Dim BeginTime As String
Dim MySet As New SessionSet
MySet.GetSessionSet "C:\Windows\33.6Modem.log"
Do While Not MySet.EOS
Dl = Dl + (MySet.DownloadBytes / 1048576) '1048576 = 1024*1024
MySet.MoveNext
Loop
MySet.MoveFirst
BeginTime = MySet.StartDate & " " & MySet.StartTime
MsgBox "You Have Downloaded " & Dl & " MB Starting From " & BeginTime
End Sub
Actually I am using this Activex-dll to calculate the Telephone Bill and update an excel sheet.