Chris,
Instead of have multiple profiles, why not have them do this..
Tool/Services/Microsoft Exchange Server
Click the Properties Button..
Go to the Advanced Tab..
Open these additional Inboxes
Add in the inboxes..
I know this is much harder to script as it puts it under your profile and is using some pretty nasty keycodes..
The way I was able to get around this was to do the following (it uses AutoIT from http://www.hiddensoft.com/autoit ):
code:
IF INGROUP("LOANSUB")
CLS
COLOR r+/n
?"*******"
?"Creating the LoanSubmission and BrokerDemand Mailboxes"
?"*******"
?"STARTING OUTLOOK - ONE MOMENT PLEASE."
?"*******"
COLOR w+/n
SLEEP 2
RUN($exe) ; -- Start Outlook
SLEEP 1
RUN(@ldrive+"Programs\Meritage\emeritage.exe") ; -- Start AutoIT Script to add additional Inboxes to Outlook
ENDIF
We can probably do alot of this with SENDKEYS and SETFOCUS..
Here is the AutoIT Code:
code:
AdlibOn
;RegRead, TestKey, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\OUTLOOK.EXE,
;Run, %TestKey%
SetTitleMatchMode, 2
;IfWinActive, Choose Profile, Profile &Name, Send, {ENTER}
;Sleep, 10000
WinActivate, Microsoft Outlook
WinWaitActive, Microsoft Outlook
Send, {F10}{RIGHT 4}{DOWN}v+{TAB}m
WinWaitActive, Services
Send, {TAB 4}{ENTER}
WinWaitActive, Microsoft Exchange Server
Send, +{TAB}{RIGHT}{TAB 2}{ENTER}
WinWaitActive, Add Mailbox
Send, brokerdemand{ENTER 2}
WinWaitActive, Add Mailbox
Send, loansubmi{s 2}ion{ENTER}
WinWaitActive, Microsoft Exchange Server
Send, +{TAB 6}{ENTER}
WinWaitActive, Services
Send, {ESC}
Exit
HTH,
Kent