Add VS Code settings and comprehensive C: drive cleanup script#23485
Open
N3M3S1SK41R0S wants to merge 5 commits intoanthropics:mainfrom
Open
Add VS Code settings and comprehensive C: drive cleanup script#23485N3M3S1SK41R0S wants to merge 5 commits intoanthropics:mainfrom
N3M3S1SK41R0S wants to merge 5 commits intoanthropics:mainfrom
Conversation
…ance fixes Major improvements over original script: - Single recursive scan of C: instead of 3 separate scans - Optimized duplicate detection: pre-filter by file size before hashing - Replace O(n²) array concatenation with Generic.List collections - Add CmdletBinding with -DryRun, -SkipHash, -Force parameters - Add drive space checks before all operations - Protect critical directories (C:\Users, etc.) from accidental moves - Preserve relative paths in quarantine to prevent name collisions - Add robocopy exit code validation - Add progress bars for long operations - Add transcript logging for full audit trail - Add execution summary with statistics - Wrap everything in try/catch/finally for safe error handling - Require admin and PowerShell 5.1+ https://claude.ai/code/session_01W4G9Qd8TxnszYZ9Wb7SWGu
Phase-based cleanup engine (0-6) with configuration for target directory tree, service optimization list, and purge patterns. Root-level entry point alongside the detailed Script/ version. https://claude.ai/code/session_01W4G9Qd8TxnszYZ9Wb7SWGu
Complete 7-phase system cleanup engine: - Phase 0: System snapshot (OS, disks, apps, startup, directory tree) - Phase 1: Disk audit (top dirs/files, cache analysis, Docker, dupes) - Phase 2: RAM optimization (processes, startup, services, visual FX) - Phase 3: File reorganization (target tree, downloads, temp, junk) - Phase 4: Desktop cleanup (5 shortcuts, hide system icons) - Phase 5: Empty directory purge (multi-pass with exclusions) - Phase 6: System optimizations (cleanmgr, DISM, WU, TRIM, Docker) https://claude.ai/code/session_01W4G9Qd8TxnszYZ9Wb7SWGu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds development environment configuration and a comprehensive PowerShell script for managing disk space on the C: drive through inventory, archival, and deduplication operations.
Changes
VS Code Configuration (
.vscode/settings.json)C: Drive Cleanup Script (
Script/cleanup_full_C_execute.ps1)A production-ready PowerShell script that performs comprehensive disk management:
Core Features:
-DryRun) for planning without executionKey Implementation Details:
Parameters:
-DryRun: Simulation mode without file operations-TopN: Number of largest files to report (default: 100)-MinSizeMBToConsider: Minimum size threshold (default: 50 MB)-OldYearsThreshold: Age threshold for archival (default: 2 years)-KeepCopies: Duplicate copies to retain (default: 2)-RetentionDaysQuarantine: Quarantine retention period (default: 30 days)-SkipHash: Disable duplicate detection for speed-Force: Skip interactive confirmationsAll operations are logged to
C:\Temp\RapportsNettoyage\with detailed reports and transcripts for compliance and troubleshooting.https://claude.ai/code/session_01W4G9Qd8TxnszYZ9Wb7SWGu