Install Chocolatey on Windows
22 Jan 2025
Install Chocolatey fast and use it to manage packages from PowerShell.
1. Open PowerShell as Administrator
2. Run this command to install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; `[System.Net.ServicePointManager]::SecurityProtocol = `[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Install packages with Chocolatey:
choco install tree
Generate a file and folder tree:
tree /F /A > structure.txt
Flags:
/F: list files and folders/A: output ASCII characters