Message Boards Message Boards

0
|
4588 Views
|
7 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Change Temporary Directory

Posted 10 years ago

How to change the value of $TemporaryDirectory ? I need to change it because there is not enough space on the C drive and the calculation seems to stop after a while !

POSTED BY: Mohamed Mahmoud
7 Replies

There are a variety of ways to save files from within Mathematica. Save, Export, NotebookSave, and others. Since it sounds like this code which was written by somebody else is filling up your disk I would be very cautious about making use of it. Any code that someone writes that causes such large amounts of data to be written to disc without warning is probably to be avoided.

POSTED BY: David Reiss
POSTED BY: David Reiss
Posted 10 years ago

No, I didn't write the code. So which function writes a temporary simulation files ? I guess they are back-up files ! .. I will give you the extension when I run the simulation again.

POSTED BY: Mohamed Mahmoud

The question then is, of course, why is your drive and filling up? Is this a consequence of the simulation that you are runningÂ…? That is, are you saving files to your disk purposefully in your simulation? Of course, as a general statement, it is never a good idea on one's computer to have a disc that is so filled.

POSTED BY: David Reiss
Posted 10 years ago
POSTED BY: Mohamed Mahmoud

Why do you think that $TemporaryDirectory is relevant to your problem?

However, if you wish to change the value of $TemporaryDirectory for a particular Mathematica session then you can simply execute

$TemporaryDirectory="path to a new directory" 

since $TemporaryDirectory is not Protected

POSTED BY: David Reiss
Posted 10 years ago

I only guessed ! Because when the C drive becomes full, the simulation somehow stops.

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

Group Abstract Group Abstract