What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Change received folder location?

Change received folder location?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Change received folder location?
quote:
Originally posted by Kriogenic
Ohh thanks theres away to edit registry using scripts?
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:
Originally posted by Chris4
The following example writes a value called "EnableOpt" in the registry and read it back.
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.

;)

This post was edited on 03-13-2008 at 03:20 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-13-2008 02:26 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Change received folder location? - by Kriogenic on 03-13-2008 at 01:50 AM
RE: Change received folder location? - by CookieRevised on 03-13-2008 at 01:58 AM
RE: Change received folder location? - by Kriogenic on 03-13-2008 at 02:13 AM
RE: Change received folder location? - by Chris4 on 03-13-2008 at 02:23 AM
RE: Change received folder location? - by CookieRevised on 03-13-2008 at 02:26 AM
RE: Change received folder location? - by Kriogenic on 03-13-2008 at 02:32 AM


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