Batch import of Address Book VCF files

Source: Internet
Author: User
Tags vcard

I. Batch import VCF files to outlook

1. Import using the outlook import function
Open the outlook contact interface and drag batch VCF files into the contact card area. The system automatically imports these VCF files.

2. Import using a VB Script

1) Open outlook2007 and press Alt + F11 to bring up the Visual Basic Editor;
2) Tools-reference, select Microsoft scripting runtime and Windows Script Host object model, and click OK;
3) insert the module, copy and paste the following code, and save it;

Sub OpenSaveVCard()Dim objWSHShell As IWshRuntimeLibrary.IWshShellDim objOL As Outlook.ApplicationDim colInsp As Outlook.InspectorsDim strVCName As StringDim fso As Scripting.FileSystemObjectDim fsDir As Scripting.FolderDim fsFile As Scripting.FileDim vCounter As IntegerSet fso = New Scripting.FileSystemObjectSet fsDir = fso.GetFolder("C:\vcard")For Each fsFile In fsDir.FilesstrVCName = "C:\vcard\" & fsFile.NameSet objOL = CreateObject("Outlook.Application")Set colInsp = objOL.InspectorsIf colInsp.Count = 0 ThenSet objWSHShell = CreateObject("WScript.Shell")objWSHShell.Run strVCNameSet colInsp = objOL.InspectorsIf Err = 0 ThenDo Until colInsp.Count = 1DoEventsLoopcolInsp.Item(1).CurrentItem.SavecolInsp.Item(1).Close olDiscardSet colInsp = NothingSet objOL = NothingSet objWSHShell = NothingEnd IfEnd IfNextEnd Sub

4) store all the vCard files in the C drive and vCard directory (you can also store them elsewhere, as long as you modify the corresponding path in the above Code );
5) return to the outlook interface, and run the Macro Tool -- macro. If a prompt such as "the macro of this project is forbidden" appears, in tool-macro-security, change the option to medium or low.

Ii. Batch import VCF files to Android phones

1. Select all contacts on the mobile phone and output them to the storage card. There is a directory on the card, contact, and each contact has a VCF file;
2. run, run, CMD, and DoS on the computer to enter the contact directory, and enter "copy/B *. VCF all. VCF "Press enter. An all is created in this directory. VCF contains all contacts
3. Under Android, click "all. VCF" in file management to import data in batches.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.