by cafer demiraslan (2 Submissions)
Category: Windows System Services
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Sat 13th March 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Simple code to Clean unwanted cookies from the system
API Declarations
2. add file list box, name: file1
3. add this code to form load event
File1.Pattern = "*.txt"
For i = 0 To File1.ListCount
If File1.List(i) = "" Then GoTo nextfile
Kill "'cookie files path\" & File1.List(i)
nextfile:
Next i
File1.Pattern = "*.dat"
File1.Refresh
For i = 0 To File1.ListCount
If File1.List(i) = "" Then Exit For
Open "cookie files path\" & File1.List(i) For Binary Access Write As #1
VarString$ = String$(LOF(1), " ")
Put #1, , VarString$'fill the file with " "
Close #1
Next i
Msgbox "That's all"