IcemanND Posted May 16, 2008 Share Posted May 16, 2008 I need a way to determine what the default E-Mail clinet is for the logged in user so that I can add to an existing VBscript that backs up the users My Documents folder. We want to add the ability to backup the usrs email without relying on them to select the correct application or folders. Link to comment Share on other sites More sharing options...
Yzöwl Posted May 16, 2008 Share Posted May 16, 2008 The only logical method I can think of is to manipulate the result of:Set oShell = CreateObject("WScript.Shell")Set oFSO = CreateObject("Scripting.FileSystemObject") sRegValue = "HKCU\Software\Classes\mailto\shell\open\command\"RegRead = oShell.RegRead(sRegValue)WScript.Echo RegReadI say manipulate because I don't know if the result will always use quotes, always have switches or always use one or more parameters. Link to comment Share on other sites More sharing options...
IcemanND Posted May 16, 2008 Author Share Posted May 16, 2008 Well I knew that would have been too easy.Unfortunately that key doesn't exist on any of the three machines I checked for any of 4 different users and 3 different mail clients. Outlook 2007, Eudora 6.2.1 and Thunderbird 2.0.0.14.In case you missed a subkey I did a search on mailto in he HKCU key and it is not found.Any other suggestions? Link to comment Share on other sites More sharing options...
Mijzelf Posted May 16, 2008 Share Posted May 16, 2008 What about HKEY_CLASSES_ROOT\mailto\shell\open\command? Link to comment Share on other sites More sharing options...
Yzöwl Posted May 16, 2008 Share Posted May 16, 2008 or HKLM\SOFTWARE\Classes\mailto\shell\open\command\It's probably my fault, I possibly only have the CU keys because I used a freeware utility to set them on an individual basis due to my fascination with uncommon applications! Link to comment Share on other sites More sharing options...
IcemanND Posted May 16, 2008 Author Share Posted May 16, 2008 Looks like either of those should work. Leave it to microsoft to let the last person logged on to email be the one to select the default email client for everyone on the system. This is going to be a pain in the a**. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now