The symbol $UserDocumentsDirectory is useful. I want to store a persistent symbol for $UserPicturesDirectory for my Pictures directory on Windows instead of my Documents directory. I used PersistentSymbol with the location “Local,” but the function didn’t work.
How can I make this persist in my user account on Windows?
PersistentSymbol doesn’t do what you think it does in this case. It created a persistent symbol with a string name
“$UserDocumentsDirectory”
which has nothing to do with the the variable named
$UserDocumentsDirectory
Instead, you should add something like that in your init.m file, which is executed every time the system is starting:
$UserDocumentsDirectory = “Desired path to your pictures folder”