Skip to content

Instantly share code, notes, and snippets.

@danieldogeanu
Last active November 6, 2023 01:01
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save danieldogeanu/0f5a7f1c44aeeebf353e63b086bc8074 to your computer and use it in GitHub Desktop.
Save danieldogeanu/0f5a7f1c44aeeebf353e63b086bc8074 to your computer and use it in GitHub Desktop.
Sync Folders Outside OneDrive
  1. Find the Address of the folder you want to be synced. (ie. G:\Games\). Copy it.

  2. Find the OneDrive location you wish for it to sync to. Hold shift and right click. On the context menu, click open command window here.

  3. In the command window type mklink /j "YourCustomFolderName" G:\Games\ (G:\Games\ is the address of your original folder).

This is like a shortcut that tells any programs that look there to look at another directory. This will sync anything inside the address you tell it to the folder created in a onedrive directory


  1. open cmd box in admin mode
  2. cd /users/<username>/OneDrive
  3. make a link like this: mklink /J <name of folder> <name of folder to sync>

Problem solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment