Skip to content

Instantly share code, notes, and snippets.

@sietsevdschoot
sietsevdschoot / replace_phonenumbers.ps1
Last active April 10, 2024 20:13
Powershell script to replace phone numbers by contactnames in WhatsApp-Chat-Exporter generated .html files of Whatsapp conversations.
using namespace System.Text.RegularExpressions
using namespace System.IO
[CmdletBinding()]
param(
[IO.FileInfo] $GoogleContactsVcf = "$PSScriptRoot\contacts.vcf",
[IO.DirectoryInfo] $WhatsappConversationsFolder = "$PSScriptRoot\WhatsApp-Key-DB-Extractor\extracted\result\"
)
if (!(Test-Path "$PsScriptRoot\ConvertFrom-Vcf.ps1")) {