Script to split single file multiple contact VCF file into individual VCF files for each included contact (Import Android Contacts Export file into Microsoft Outlook)

System Requirements:

  • Windows Scripting Host 5.6 or higher
  • Windows 95, NT 4, 98, 98SE, ME, 2000, XP, Vista, 7, 8, 8.1, 10
  • Windows Server NT 4, 2000, 2003, 2003 R2, 2008, 2008 R2, 2012, 2012 R2, 2016

The Problem:

I did an export from the People / Contacts on Android which produced a single .VCF vContact file for all of the contacts. On attempting to import it into Outlook, Outlook ignored all but the first entry in the file.

Additionally, you may not want to import all of the contacts in the monolithic VCF.

The Fix

The VB Script file below will take the .VCF file and split it into individual .VCF files, one for each contact.

The script will create a sub-directory in the same folder that the script is executed from and all of the new .vcf files will be placed in here using the name of the user.

Download

  • No warranty is offered or implied for the use of this script. No liability is inferred for damages caused as a result of its use. Use it at your own risk
  • You may use the script for free for personal use
  • You may not redistribute this script. If you want to link to it, please link to this page.

Download: SplitVCard version 1.0.1 (2.57 KB)

Usage Instructions

You can either drag and drop the monolithic VCF file onto the SplitVCard.vbs file in Windows Explorer or use the command line syntax as follows to specify the path of the source file.

cscript.exe SplitVCard.vbs “C:\Bla\Bla\Bla\Contacts.vcf”

Release history

1.0.0 – 21/11/2016. Initial release

1.0.1 – 22/06/2017. Added some additional illegal character protections when writing individual files back to the file system for ?, / and \ characters

Limitations

As this is a VB Script file, the naming conventions are currently only setup for ASCII. If you wanted to use Unicode or another encoding, you will need to edit the script.