Skip to content

Instantly share code, notes, and snippets.

@ghotz
ghotz / convert-polarflow-to-garmin.ps1
Created November 7, 2015 22:42
Converts Polar Flow TCX file for Garmin Connect
#
# Removes incorrect data from *.tcx files exported from the Polar Flow
# web site so they can be uploaded to the Garmin web site.
# More info: https://forums.garmin.com/showthread.php?165708-Polar-Flow-TCX-export-to-Garmin-Connect
#
$SourceDir = "C:\Users\Gianluca\OneDrive\Documents\Health\PolarFlow";
$DestinationDir = "C:\Users\Gianluca\OneDrive\Documents\Health\ExportGarmin";
Get-ChildItem $SourceDir -Include "*.tcx" -Recurse |
Where-Object { !(Test-Path (Join-Path $DestinationDir $_.Name)) } |