Shoutbox

Where is Recieved Files Folder stored in the registry? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: Where is Recieved Files Folder stored in the registry? (/showthread.php?tid=76298)

Where is Recieved Files Folder stored in the registry? by Luigi on 07-24-2007 at 03:45 PM

I did a quick search in the forums but I didn't find anything...
Is there a reg key or a setting I can read somewhere which can tell me what is MSN/WLM Recieved Folder?

Please don't tell me "File > Open Recieved folder" I want to know that folder through an external program. :)


RE: Where is Recieved Files Folder stored in the registry? by Ezra on 07-24-2007 at 03:53 PM

For WLM 8.1.0178 it is:

code:
HKCU\Software\Microsoft\MSNMessenger\FtReceiveFolder

RE: Where is Recieved Files Folder stored in the registry? by Luigi on 07-24-2007 at 03:57 PM

Thanks a lot, I'm using WLM 8.5 but I was searching for 8.1's reg key. I forgot to specify. :$

Edit: Maybe someone knows the 8.5 key too? 8-)


RE: Where is Recieved Files Folder stored in the registry? by Voldemort on 07-24-2007 at 04:23 PM

isn't it just
HKCU\Software\Microsoft\Windows Live\Messenger\FtReceiveFolder
or something really similar?


RE: Where is Recieved Files Folder stored in the registry? by Luigi on 07-24-2007 at 04:33 PM

I tried, but I don't have such a key. Maybe it's set only if you choose a different folder than the default one?

And noone of my friends has the 8.1 key... Why is this happening?


RE: Where is Recieved Files Folder stored in the registry? by CookieRevised on 07-24-2007 at 08:42 PM

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
RE: Where is Recieved Files Folder stored in the registry? by Luigi on 07-25-2007 at 12:17 PM

Woah, thanks a lot CookieRevised, what a complete explaination! :D
Bookmarking this topic... :D


RE: Where is Recieved Files Folder stored in the registry? by Spunky on 11-27-2007 at 04:16 PM

Sorry to bring back an old thread, but I need to find the path in 8.5 final and I can't find any registry keys and the language resource file doesn't have the string Cookie said I need to find


RE: Where is Recieved Files Folder stored in the registry? by CookieRevised on 11-27-2007 at 04:23 PM

quote:
Originally posted by SpunkyLoveMuff
Sorry to bring back an old thread, but I need to find the path in 8.5 final and I can't find any registry keys and the language resource file doesn't have the string Cookie said I need to find
Please read my post more carefully... especially the part:
quote:
Originally posted by CookieRevised
[snipped]

this could easly be found out and verified by simply changing the folder in the Messenger preferences and checking your registry for that path.

[snipped]

Besides that, what has been written in that post still applies for the latest versions.



;)