Where a Tool Keeps Its Data

A tool keeps its data in a folder of its own under $env:LOCALAPPDATA, builds the path with Join-Path, creates the folder the first time it runs, and saves and loads its objects as JSON, so what you add today is still there tomorrow, whatever folder you're in.

Updated

Cheat sheet for the lesson Where a Tool Keeps Its Data: A tool keeps its data in a folder of its own under $env:LOCALAPPDATA, builds the path with Join-Path, creates the folder the first time it runs, and saves and loads its objects as JSON, so what you add today is still there tomorrow, whatever…
Category
PowerShell
Level
Journeyman
Tags
appdata, convertto-json, environment-variable, join-path, operating-system, powershell, test-path