Change received folder location? - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Change received folder location? (/showthread.php?tid=82315) Change received folder location? by Kriogenic on 03-13-2008 at 01:50 AM
Hey there everyone code: This had lead me to believe there is no way to change the received file directory but only read its path... So my question is... Is there away to change the received file directory? RE: Change received folder location? by CookieRevised on 03-13-2008 at 01:58 AM
The folder is stored in the registry as a binary unicode string. So you could change it using the windows registry APIs. RE: Change received folder location? by Kriogenic on 03-13-2008 at 02:13 AM Ohh thanks theres away to edit registry using scripts? RE: Change received folder location? by Chris4 on 03-13-2008 at 02:23 AM
I can only find how to write and read values (from the documentation), not edit. quote: RE: Change received folder location? by CookieRevised on 03-13-2008 at 02:26 AM
quote:yes using the Windows Registry APIs, or other methods like WMI (Windows Management Instrumentation) or the build-in Windows Script Host functions. See various scripts for various methods (although using the Windows APIs is still the most versatile and most powerfull one)... --------- quote:That really isn't the best example for this purpose, since using the build-in registry functions of the Windows Script Host are extremely limited in any thinkable way. Although it shows you "can edit" the registry somewhat, true. But you can't use this method for something like the OP requested, since they don't support the REG_BINARY type (properly). --------- Kriogenic, for changing that registry key you need at least: - use the Windows Registry APIs: RegCreateKeyExW, RegSetValueExW, RegCloseKey (to set a binary registry key) RegOpenKeyExW, RegQueryValueExW, RegCloseKey (to read a binary registry key) - use other Windows APIs (or the build-in JScript methods, although again they are very limited) to check if the new directory does exists - use other Windows APIs (or the build-in JScript methods, although again they are very limited) to make the new directory - use Plus! script Interop functions to call the Windows APIs - use Plus! script Interop functions to make and allocate buffers In other words, to pull it off in a proper way, you do need some knowledge beyond basic (Plus!) scripting. RE: Change received folder location? by Kriogenic on 03-13-2008 at 02:32 AM alright thanks, i know its not going to work properly but it should work well enough for what i need it for |