devxlogo

ClearRunHistory – Clearing the Run history

ClearRunHistory – Clearing the Run history

' Clear the Run History' The MRU list is kept available until Explorer is restartedSub ClearRunHistory()    Dim keyName As String = "SoftwareMicrosoftWindowsCurrentVersionExplorer" _        & "RunMRU"    ' delete the key that contains the URLs the history    Microsoft.Win32.Registry.CurrentUser.DeleteSubKey(keyName, False)    ' recreate the key, empty    Microsoft.Win32.Registry.CurrentUser.CreateSubKey(keyName)End Sub

devx-admin

Share the Post: