The Win32::OLE module is your friend... but not quite enough.
If you're really needing to do this you should *cringe* use VBScript - it's
quick to write and it actually works, unlike when you do it with Perl (which
sometimes doesn't save the changes back).
In VB you need something like this:
Function Run()
Dim O, M, objNameSpace, colFolders, F, objRecipient, objInbox
Set O = CreateObject("Outlook.Application")
Set objNS = O.GetNamespace("MAPI")
Set objRecipient = objNS.CreateRecipient("Andermc") 'Your
username/Exchange alias
objRecipient.Resolve
If objRecipient.Resolved Then
MsgBox "Resolved User"
Else
msgBox "Failed again."
End If
'You'll be looking at Contact's though...
Set objInbox = objNS.GetDefaultFolder(olFolderInbox)
Set colFolders=objInbox.Folders("Perlmonks")
MsgBox "Perlmonks has: " & colFolders.Items.Count & " items."
'Set F = colFolders("Inbox")
...
End Function
Good Luck
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.rbs.co.uk/GTrswi/
> -----Original Message-----
> From: Ronen Kfir [SMTP:[EMAIL PROTECTED]
> Sent: Monday, March 15, 2004 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: change numbers in outlook contacts.
>
> *** WARNING : This message originates from the Internet ***
>
> *** WARNING : This message originates from the Internet ***
>
> Hi,
> I'm looking for a way to modify the phone field in my outlook contacts.
> It is a massive modification, as here in Israel they change the prefix &
> the number of the phone of the cellular numbers.
> The task is to change the prefix & ad one digit to the phone no.
> Any ideas in doing that?
>
> Best,
>
>
> R o n e n K f i r
> System Administrator
> CIT div. Tel Aviv University
> Israel
> Tel: 972-3-6407416
> Fax: 972-3-6405158
> cellular: 972-55-405910
> E-mail: [EMAIL PROTECTED]
>
>
>
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office:
36 St Andrew Square, Edinburgh EH2 2YB
The Royal Bank of Scotland plc is authorised and regulated by the Financial Services
Authority and represents The Royal Bank of Scotland Marketing Group. The Bank sells
life policies, collective investment schemes and pension products and advises only on
the Marketing Group's range of these products and on a With-Profit Bond produced by
Norwich Union Life (RBS) Limited.
This e-mail message is confidential and for use by the addressee only. If the message
is received by anyone other than the addressee, please return the message to the
sender by replying to it and then delete the message from your computer. Internet
e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept
responsibility for changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the transmission of viruses, it is
the responsibility of the recipient to ensure that the onward transmission, opening or
use of this message and any attachments will not adversely affect its systems or data.
No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the
recipient should carry out such virus and other checks as it considers appropriate.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs