# Changing \$UserDocumentDirectory variable

Every time I open Mathematica, it creates a "Wolfram Mathematica" folder in my documents folder. But I keep all my Mathematica stuff in the directory "C:/.../Documents/Code/Wolfram Mathematica". How can I make it so Mathematica recognizes this folder instead, and doesn't continue to create its own folder in Documents?

• You'll have to set it at the OS level to get it to change where that's made. See this. You can also put something in your init.m file that removes this directory. – b3m2a1 Sep 21 '17 at 1:14
• I can't find an init.m, only a sysinit.m. But it is not allowing me to edit this document. – Joe Sep 21 '17 at 1:37
• Possible locations for init.m are listed under "Details" in the documentation for init.m. If you don't already have an init.m, create one. – LouisB Sep 21 '17 at 3:40
• There may be no way to change this variable. I'd expect that the directory is created by the FE, not the kernel, but I have not tested it and cannot test it because I am on Windows (@LouisB) – Szabolcs Sep 22 '17 at 18:57
• Almost a duplicate: mathematica.stackexchange.com/q/89369/12 Also: community.wolfram.com/groups/-/m/t/573855 (asked twice but no good solution) – Szabolcs Sep 22 '17 at 19:01