Skip to content

Code to delete favorites ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #189677

    Hey I am working on my new ban remover, do any of u can hook me up with the code to delete favorites folder, no time right now to search :0) Thanks


    Admin what i use is this….


    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    Public Function OpenURL(ByVal URL As String) As Long
    OpenURL = ShellExecute(0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus)
    End Function

    XP Code:

    OpenURL "C:Documents and SettingsAll UsersFavorites"

    Windows 98 Code:

    OpenURL "C:WINDOWSFavorites"

    you can put the OpenURL “C:Documents and SettingsAll UsersFavorites” in a command button ect… same with OpenURL “C:WINDOWSFavorites”

    so when they click on the button for exsample it will pop up the Favorites folder and they can delete whats in there Favorites 🙂

    maybe someone knows a better way but thats how i do it 😉


    Thanks a lot thats exactly what I needed 🙂


    Check this little change I made, cause before dont know it suppose to but didnt take me to the xp user favorites,

    If Environ("OS") = "Windows_NT" Then
    OpenURL "C:Documents and Settings" & Environ("USERNAME") & "Favorites"
    OpenURL "C:WINDOWSFavorites"
    End If

    Now it takes me to the fav folder of the window xp user 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.