File Operations

File Operations

PowerShell Get-FileHash: Get SHA256/MD5 Hashes and Export a Folder to CSV

Get-FileHash basics: SHA256 and MD5 hashes, comparing two files, verifying a download, and exporting hashes of every file in a folder to CSV with dates.
File Operations

PowerShell + Robocopy: Daily Backup to a Password-Protected NAS

A PowerShell script that mirrors drive D to a NAS with robocopy, keeps the NAS password in Credential Manager, refuses to run if the source is empty, and runs daily.
File Operations

PowerShell: Compare Two Folders by File Hash to Find Changed Files

Find added, removed and changed files between two folders with Get-FileHash and Compare-Object. Tested: why comparing names or modified dates misses real changes.
Claude Code

File History Full? Claude Code and Codex Chat Logs Took 444GB

42GB of Codex and Claude Code chat logs became 444GB in Windows File History. Why it happens, how to exclude them, and a robocopy script to back up only the latest.
File Operations

Robocopy Destination Folder Hidden After Copying a Drive? Use attrib

Copying a drive root like B:\ with robocopy gives the destination folder hidden and system attributes, so Explorer hides it. Fix it with attrib -s -h. Batch included.
File Operations

Robocopy Exit Codes Explained: Below 8 Is Success (Tested)

Robocopy returns non-zero even on success. Exit codes below 8 mean success, 8 or higher mean failures. Each code reproduced, plus batch and PowerShell checks.
スポンサーリンク