How to Move OneDrive to the Root of the C: Drive
Question details
The user wants to move the OneDrive folder to the absolute root of the C: drive to create shorter file paths for engineering software, but encounters file-in-use errors and unwanted nested subfolders.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to relocate the OneDrive sync directory to the C: drive root after unlinking the account.
- Observed behavior
- File Explorer blocks the folder move due to an "open file" error. When a root-level subfolder is used, OneDrive still forces the creation of additional nested account folders.
Before attempting to move your OneDrive folder, ensure that you have fully closed all background applications, including engineering software or CAD libraries, to prevent "file in use" errors during the transfer.
Create a Short Root-Level Folder Instead of Using the Absolute Root
Since Microsoft OneDrive does not officially support syncing directly to the absolute root of the system drive (C:\), creating a short dedicated folder (like C:\OneDrive) is the safest alternative for minimizing file paths.
OneDrive is designed to automatically append your organization or personal account name to the folder path (e.g., 'OneDrive - Company Name'). Choosing the absolute root of the C: drive is typically blocked by Windows profile permissions.
Using a short, dedicated directory at the root level provides the closest possible result to your goal while remaining a supported configuration.
Click the OneDrive cloud icon in your taskbar, select the gear icon, and choose 'Settings'. Go to the 'Account' tab and click 'Unlink this PC'.
Open File Explorer, navigate to 'This PC' > 'Local Disk (C:)', and create a new folder named 'OneDrive' or 'Projects'.
Navigate to your old OneDrive folder location (usually C:\Users\YourUsername\OneDrive), select all files, and move them to the newly created folder on your C: drive.
Sign back into OneDrive. When you reach the screen that says 'Your OneDrive folder is here', click 'Change location' and select the new folder you created on the C: drive.

Resolve 'File is Open' Errors When Moving the Folder
Use this solution if File Explorer prevents you from moving your unlinked OneDrive files because it claims a file is currently open.
Manage Your Documents Seamlessly with WPS Office
If you are optimizing your Windows file paths to improve your workflow, consider switching to WPS Office. It is a lightweight, free alternative to Microsoft Office that perfectly integrates with your local directories and cloud storage, avoiding the heavy system footprint of traditional office suites.
- 1. Download and Install WPS Office: Visit the official WPS website, download the free installer, and complete the quick, lightweight installation process.
- 2. Open Your Synced Documents: Launch WPS Office and navigate to your newly relocated OneDrive folder on the C: drive to open your existing Word, Excel, or PowerPoint files.
- 3. Save Seamlessly: Edit your documents and save them directly back to your custom OneDrive directory; WPS maintains perfect format compatibility.

Frequently Asked Questions
Can I force OneDrive to sync directly to the C:\ root without subfolders?
No, Microsoft OneDrive does not officially support setting the absolute root of the system drive (C:\) as the sync destination. It will always automatically append a subfolder with your account name (e.g., 'OneDrive - Personal' or 'OneDrive - Company') to separate cloud data from system files.
Why do I get a 'file is open' error when moving my unlinked OneDrive folder?
This error occurs when background applications, cloud syncing processes, or even the File Explorer Preview Pane are still accessing the files. You must completely exit OneDrive from the system tray and close all programs using those files before attempting to move the folder.
What is the best way to shorten file paths for engineering software using OneDrive?
The most reliable method is to create a short, top-level directory like C:\Projects or C:\CAD, and set that as your OneDrive location. While OneDrive will still add an account-specific subfolder, this significantly reduces the overall character count of your file paths compared to the default user profile location.




