VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Simple code to Clean unwanted cookies from the system

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

Rate Simple code to Clean unwanted cookies from the system



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"

Download this snippet    Add to My Saved Code

Simple code to Clean unwanted cookies from the system Comments

No comments have been posted about Simple code to Clean unwanted cookies from the system. Why not be the first to post a comment about Simple code to Clean unwanted cookies from the system.

Post your comment

Subject:
Message:
0/1000 characters