Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.8K Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

How to store $UserPicturesDirectory as a persistent symbol?

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?

POSTED BY: Peter Burbery

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"

POSTED BY: Victor Kryukov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard