MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: $UserBaseDirectory

  • To: mathgroup at
  • Subject: [mg83095] Re: [mg83063] $UserBaseDirectory
  • From: Murray Eisenberg <murray at>
  • Date: Sat, 10 Nov 2007 03:45:20 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <>
  • Reply-to: murray at

Presumably the Help system didn't say since that's a WINDOWS environment 
variable.  From the Windows XP Start menu....

   Select Settings
   Select Control Panel
   Double-click System control panel
   Click Advanced tab on System control panel window.
   Click Environment Variables button near bottom of the Advanced tab.
   In the lower* of the two panes in the Environment Variables window
     that opens, click the New button.
   Fill out the New System Variable window's dialog with the

     Variable name:  MATHEMATICA_USERBASE
     Variable value: C:\MyMathDirectory

   Now click the OK button there, then the OK button on the
     Environment Variables window, then the OK button on the
     System Properties window.

   (Re)start Mathematica.

[If you have more than one user, you could instead use the upper of the 
two panes and add the new environment variable as a per-user variable.]

There are other ways to get to the System Control Panel; I gave just one.

thomas wrote:
> Hello,
> I wold like to change the default location of the $UserBaseDirectory.
> All I can find in the documentation and in the forum is that I need to
> set the environmental variable MATHEMATICA_USERBASE upon startup, but
> it doesn't say anywhere how to do that.
> What - explicitly -  do I have to do?
> Let's say, I want to set $UserBaseDirectory to C:\MyMathDirectory.
> If I am successful, do I need to copy the directory structure from the
> old directory to the new one in order for Mathematica to run smoothly
> afterwards?
> Windows XP Professional
> Mathematica 6.0.1
> Thank you
> Thomas

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: Can you get a package back to a notebook easily?
  • Next by Date: variable capture issues with Module, Block and pure/defined functions
  • Previous by thread: $UserBaseDirectory
  • Next by thread: Re: $UserBaseDirectory