How to fool Windows and clean your C drive without deleting anything. Without Admin access.

Manager — SDE
Search for a command to run...

Manager — SDE
No comments yet. Be the first to comment.
← Previous: What’s New in the SDK and Tooling for .NET 9 .NET Aspire is a set of tools, templates, and packages designed to help developers build observable, production-ready apps that embrace cloud-native and distributed computing best practices. .N...

← Previous: What’s New in .NET Libraries for .NET 9 The .NET 9 SDK introduces several new capabilities and improvements to streamline development workflows, enhance build and test experiences, improve NuGet security and performance, and provide great...

← Previous: What’s New in .NET MAUI for .NET 9 .NET 9 adds a wide range of enhancements and new APIs across the base class libraries. These improvements touch everything from low-level data structures and cryptography to JSON serialization, text pr...

← Previous: What’s New in ML.NET .NET Multi-platform App UI (.NET MAUI) in .NET 9 focuses on improving overall product quality, test coverage, performance, and stability. While previous releases introduced major new capabilities and controls, the emp...

← Previous: What’s new in ASP.NET Core 9.0 ML.NET continues to evolve as a full-featured, open-source machine learning framework for .NET developers, enabling you to create, train, and deploy custom ML models directly in your .NET applications. ML....

If you are a Windows user, chances are you have run out of space in C drive, at one point or another. This tutorial will help you clean up C drive using directory links aka NTFS junction point.
This lets Windows and all other programs believe that the specified directory exists but actually, it's just a pointer to the new path, which can also be on another drive.
It's like a shortcut but better.
Without further ado, let's see the code.
C:\Satish\Some Folder
D:\Can be another Folder
mklink /J "C:\Satish\Some Folder" "D:\Can be another Folder"
This will create a directory junction that points to the new path.
Now when you navigate to C:\Satish\Some Folder, it will show contents of D:\Can be another Folder, but Windows and other programs will be oblivious about that.
Neither the Windows NT startup process nor the Windows Vista startup process support Junction points, so it's impossible to redirect certain system folders:
folder containing hiberfil.sys (if it's configured to be outside root directory)
\Windows
\Windows\System32
\Windows\Config
However, it is possible to redirect non-critical folders:
\Users
\Documents and Settings
\Program Files
\Program Files (x86)
Creating junctions for \Users and \ProgramData pointing to another drive is not recommended as it breaks updates and Windows Store Apps.[1]
Creating junctions for \Users, \ProgramData, "\Program Files" or "\Program Files (x86)" pointing to other locations breaks installation resp. upgrade of Windows.[2]
Creating junctions for "\Program Files" or "\Program Files (x86)" pointing to another drive breaks Windows' Component Based Servicing which hard links files from its repository \Windows\SxS to their installation directory.