Some Windows software insist to write into folder/drive where you do not like to store your data.
You can create symbolic link (symlink) to a different location so all writing will be redirected to yours defined location.

1) easy way: download and install
do not support dots in folder names

2) manual way:

Start menu -> Search, cmd
right click cmd entry and select to run as an administrator.

Then once terminal opened, type: cd C:\path\to\directory

(C:\path\to\directory should be one that contains folder which location you dislike)

Then do command: dir

to see that folder you want to move is indeed there.

if it is there, then close or kill all software that are using this folder which you want to move. then use File explorer to move this folder to a desired new location.

then in the terminal (cmd) you opened execute command:
mklink /D "Moved directory name here" "C:\path\whereyou\movedthefolder\Moved directory name here"

MKLINK [[/D] | [/H] | [/J]] Link Target

/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link - Specifies the new symbolic link name.
Target - Specifies the path (relative or absolute) that the new link
refers to.
in the path where you execute above command will be created directory named "Moved directory name here" which will be linking to the new location you defined.

To symlink file, not a directory, just do not use " /D" part of the command.