ご回答ありがとうございます。
お気に入りの件はお答えいただいたプログラムで直りました。
有難うございます。
検索の方はshell:searchesのパスがc:\users%username%\Desktop\searches
%username%とsearchesの間にDesktopが入っております。
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
の値も
c:\users%username%\Desktop\searches
でした。
これが原因なのでしょうか?