Home > Software engineering >  VB how to delete the specified cache files
VB how to delete the specified cache files

Time:10-31

For instance http://198.200.35.161/2.txt this address; Will be in the cache to generate a 2. TXT file, use any way to delete the generated cache thanks for your answer, will give the complete code because I beginner thanks

CodePudding user response:

You take a look at this "cache file path," when you have finished using the file delete it closed directly kill command,
Del X or shell "CMD/c: \... 2 \ TXT"

CodePudding user response:

 '〓 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache function related definition statement Start 
Public Declare Function DeleteUrlCacheEntry Lib "Wininet. DLL" Alias "DeleteUrlCacheEntryA" (ByVal lpszUrlName As String) As Long
'〓 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache function related definition statement End
'┏ 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache, start 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┓
'[abstract] :
'delete the cache page
The Function killcache (byurl As String)
'[mycode_id: 595], edittime: 2007/4/22 12:37:24
DeleteUrlCacheEntry byurl
End the Function
'┗ 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache, end 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┛

CodePudding user response:

Killcache "http://198.200.35.161/2.txt"

CodePudding user response:

refer to the second floor xiaoyao961 response:
 '〓 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache function related definition statement Start 
Public Declare Function DeleteUrlCacheEntry Lib "Wininet. DLL" Alias "DeleteUrlCacheEntryA" (ByVal lpszUrlName As String) As Long
'〓 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache function related definition statement End
'┏ 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache, start 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┓
'[abstract] :
'delete the cache page
The Function killcache (byurl As String)
'[mycode_id: 595], edittime: 2007/4/22 12:37:24
DeleteUrlCacheEntry byurl
End the Function
'┗ 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache, end 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┛

The study,

CodePudding user response:

refer to the second floor xiaoyao961 response:
 '〓 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache function related definition statement Start 
Public Declare Function DeleteUrlCacheEntry Lib "Wininet. DLL" Alias "DeleteUrlCacheEntryA" (ByVal lpszUrlName As String) As Long
'〓 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache function related definition statement End
'┏ 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache, start 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┓
'[abstract] :
'delete the cache page
The Function killcache (byurl As String)
'[mycode_id: 595], edittime: 2007/4/22 12:37:24
DeleteUrlCacheEntry byurl
End the Function
'┗ 〓 〓 〓 〓 〓 〓 〓 〓 〓 killcache, end 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┛


To study the
  •  Tags:  
  • API
  • Related