What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » Where is Recieved Files Folder stored in the registry?

Where is Recieved Files Folder stored in the registry?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Where is Recieved Files Folder stored in the registry?
Windows Live Messenger 8.5 registry values are in the same place as previous versions. But 8.5 is still beta so this can still change in the final version though....

HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\FtReceiveFolder

this could easly be found out and verified by simply changing the folder in the Messenger preferences and checking your registry for that path. So please do such tests before posting, instead of guessing.

-------------------------------------------------

When this registry key doesn't exist, a new default directory is automatically created when Messenger starts up. The name depends on the language of Messenger.
This default location is something like: C:\Documents and Settings\<username>\My Documents\My Received Files

The proper method to find this location is to use the SHGetSpecialFolderLocation API (or the likes).

NEVER EVER read this location from the registry key "HK_*\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "User Shell Folders" or any other registry key. The registry is not the proper place to find user folders as those keys: 1) don't always exist, and 2) wont always point to the correct location. Those keys are ONLY provided for compatibilty with (very extremely) old programs from back in 1994! of which probably not a single one exist anymore. Use the provided Windows APIs instead (SHGetSpecialFolderLocation and related APIs).
more details: http://blogs.msdn.com/oldnewthing/archive/2003/11/03/55532.aspx

So, in order to get the location of the received files folder you need to do:
  1. Check the registry key:
    HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\FtReceiveFolder

  2. If the key didn't exist or it has no value (this is not the same as an empty string!), the location string is created as follows:
    1. Check the version of Messenger
    2. Open the language resource file of Messenger.
      (the file name depends on the version number, hence step A)
    3. Read out string resource number 61188.
      (This contains the proper translated name of the received files folder).
    4. Get the special folder with CSIDL constant CSIDL_PERSONAL using the Windows API SHGetSpecialFolderLocation or related.
    5. Concatenate the folder found in step D with the string found in step C.
Note: the above steps are valid for all current Messenger versions (7.0 -> 8.5).

;)

Note: A Plus! script example for points A, B and C can be found in the script Tabbed Chat Taskbar Button Changer

This post was edited on 11-27-2007 at 04:28 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-24-2007 08:42 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Where is Recieved Files Folder stored in the registry? - by Luigi on 07-24-2007 at 03:45 PM
RE: Where is Recieved Files Folder stored in the registry? - by Ezra on 07-24-2007 at 03:53 PM
RE: Where is Recieved Files Folder stored in the registry? - by Luigi on 07-24-2007 at 03:57 PM
RE: Where is Recieved Files Folder stored in the registry? - by Voldemort on 07-24-2007 at 04:23 PM
RE: Where is Recieved Files Folder stored in the registry? - by Luigi on 07-24-2007 at 04:33 PM
RE: Where is Recieved Files Folder stored in the registry? - by CookieRevised on 07-24-2007 at 08:42 PM
RE: Where is Recieved Files Folder stored in the registry? - by Luigi on 07-25-2007 at 12:17 PM
RE: Where is Recieved Files Folder stored in the registry? - by Spunky on 11-27-2007 at 04:16 PM
RE: Where is Recieved Files Folder stored in the registry? - by CookieRevised on 11-27-2007 at 04:23 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On