Redline Communications AN-50e Spezifikationen Seite 34

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 53
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 33
Appendix 1
This macro takes the raw IP Traffic data files that are saved as text files and stored in
the C:\SampleData file.
Sub Macro2()
Dim objFSO As New FileSystemObject
Dim DataDir As Folder
Dim DataDirFiles As Files
Dim DataFile As File
Dim stream As TextStream
Set DataDir = objFSO.GetFolder("C:\SampleData")
j = 2
For Each DataFile In DataDir.Files
Set stream = DataFile.OpenAsTextStream
stream.ReadLine
stream.ReadLine
stream.ReadLine
stream.ReadLine
I = 1
RunningTotal = 0
Start = 0
Ender = 0
While Not stream.AtEndOfStream
temp = stream.ReadLine
' ActiveSheet.Cells(j, 10) = temp
temp2 = Split(temp, " ")
temp3 = Split(temp2(3), "s")
If IsNumeric(temp3(1)) Then
34
Seitenansicht 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 52 53

Kommentare zu diesen Handbüchern

Keine Kommentare