'Google Chrome - Change user directory

I'm trying to change my location of Google Chrome's user directory to another drive. I've searched on the internet and the solution for Chrome to load the user files from the new location is using this command line:

chrome.exe -user-data-dir="D:/NewLocation"

However using this command line does not change anything. It still loads the files from the AppData folder. I also tried another command which simply adds a second "-" to "user" but with this Chrome doesn't even start:

chrome.exe --user-data-dir="D:/NewLocation

What do i do wrong?

Thanks in advance! :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source