README.md
December 4, 2022 ยท View on GitHub
Description
Clears the recent documents list with a single command. Easy to implement in a text editor, or in some sort of trace-deleter program..
More Info
place in a module, set 'Sub Main' as startup, press F5.
0 if no error occoured.
if there's many entries in recent folder, have patience :)
| Submitted On | |
| By | rudz |
| Level | Beginner |
| User Rating | 4.3 (13 globes from 3 users) |
| Compatibility | VB 5.0, VB 6.0 |
| Category | Windows System Services |
| World | Visual Basic |
| Archive File |
API Declarations
Private Declare Function SHAddToRecentDocs Lib "Shell32" (ByVal lFlags As Long, ByVal lPv As Long) As Long
Source Code
' Name : Clear all recent documents
' By : Rudy Alex Kohn
' [rudyalexkohn@hotmail.com]
Public Function ClearRecent()
' Clear the 'Recent Document' list
' Returns 0 if successfull
ClearRecent = SHAddToRecentDocs(0, 0)
End Function
Sub Main()
If MsgBox("This will clean the 'Recent Documents', proceed?", 68, "Clear Recent Documents List") = 7 Then End
If ClearRecent <> 0 Then MsgBox "Error.."
End Sub