|
-
Jun 13th, 2000, 02:32 PM
#5
Hyperactive Member
Observe! You can´t look for a specific virus with this. But you can watch every change.
With a commandbutton and a textbox.
Private Sub Command1_Click()
Dim FileName As String
Dim FileSize As Currency
Dim Directory As String
Directory = "C:\"
FileName = Dir$(Directory)
FileSize = 0
Do While FileName <> ""
FileSize = FileSize + FileLen(Directory & FileName)
FileName = Dir$
Loop
Text1.Text = Str$(FileSize)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|