TRY THIS
------------
'IDforOE.vbs - Force Outlook Express 5 to prompt for an Identity
Set WshShell = WScript.CreateObject("Wscript.Shell")
'Clear the values from the registry
WshShell.RegWrite "HKCU\Identities\Last Username", ""
WshShell.RegWrite "HKCU\Identities\Last User ID", ""
WshShell.RegWrite "HKCU\Identities\Default User ID", ""
WshShell.RegWrite "HKCU\Identities\Start As", ""
'Launch Outlook Express
WSHShell.Run "Msimn.exe"
-----------------
put this in a text file call something.vbs
run it (you can have pdox run it)
this code blanks the current user (the default user is not always current
depending on your settings) but you can fill in the user you want in the
quotes after each value and when run it "presets" what OE will open as...
you may have to fiddle with the other oe options of each identity
"Régis" <regis.dd@[EMAIL PROTECTED]
> wrote in message
news:485fc7ab$1@[EMAIL PROTECTED]
> My problem is simple, but i don't Know how to do it:
> If i have this code on a button:
>
> method pushButton(var eventInfo Event)
> execute("C:\\Program Files\\Outlook Express\\msimn.exe", Yes,
> ExeShowNormal)
> endMethod
> I can open Outlook Express from Paradox, but OE is always opened on a
> default account
>
> what I want to do is to open OE on a specific account
> I don'know how to do it
>
>
> i.e
> Regis home account: with this e-mail regis.home@[EMAIL PROTECTED]
login
> regishome, password: azerty
> Regis professional account e-mail regisprof@[EMAIL PROTECTED]
login
> regispro, password qwerty
> and so on...
>
> Any ideas how to do it
> Thanks in advance
> Régis
>
>
>


|