How to move data folder to different location in Windows 10 using symbolic link.
What is symbolic link?
More specifically, a symbolic link is a file system object that points to another file system object. The object can be either a file or a folder. Symbolic links are transparent to users—the links appear as normal files or folders and can be accessed by applications and users in exactly the same manner.
To use the MKLink tool, you have to open a command prompt in administrator mode. Here's the easiest way to do so:
Click the Start button.
Type CMD in the Start Search box.
Press and hold down [Ctrl]+[Shift]+[Enter].
A UAC dialog box will appear, and you'll have to respond accordingly.
When the Administrative Command Prompt window appears, just type mklink and you will see the tool's syntax description, as shown below.
How it works.
If you use the base command without any options, you can create a symbolic link to a file. For example, the command:
mklink un.exe ultranote.exe
will create a file symbolic link so that typing un.exe will allow you to launch ultranote.exe (not what we're looking for).
Using the /D option will create a symbolic link to a folder. For example, the command:
mklink /D C:\UltraNote D:\yourlocation\UltraNote
will create a symbolic link called UltraNote that points directly to the folder UltraNote in different location.
The /H option will create a hard link rather than a symbolic link. The difference between a hard link and a standard symbolic link is that instead of working like a shortcut, a hard link is more like renaming the file. For example, the command:
mklink /H xun.exe ultranote.exe
will make the operating system treat xun.exe as if it were actually ultranote.exe (not what we're looking for).
Finally this is what we looking for, the /J option will create a hard link to a folder. This is also called a directory junction (junction point) and instead of working like a shortcut to a folder, a hard link works more like a regular folder. For example, the command:
mklink /J C:\Users\username\AppData\Roaming\UltraNote D:\yourlocation\UltraNote
will make the operating system work with the long directory structure C:\Users\username\AppData\Roaming\UltraNote just as if it were a single directory named c:\UltraNote. Remember before use this command copy and paste to new location then rename your UltraNote folder om C drive and after succesfull operation you can deleted.
If you have been following along and creating any of these types of symbolic links, you can terminate the link simply by deleting it. For instance, to terminate the UltraNote hard link, you'd simply delete the C:\Users\username\AppData\Roaming\UltraNote folder. However, since the link is terminated first and C:\Users\username\AppData\Roaming\UltraNote folder is actually empty, you needn't be concerned about data loss in the D:\yourlocation\UltraNote folder. So remember to backup all data before !!!
Hope it helps you to save some space, enjoy.