You are here

Thunderbird Writes to TEMP Folder...how to stop?

3 posts / 0 new
Last post
acsempronio
Offline
Last seen: 16 years 5 months ago
Joined: 2008-01-08 17:42
Thunderbird Writes to TEMP Folder...how to stop?

I have my Portable Apps package inside a TrueCrypt container on my USB drive.
I have a truecrypt container as a volume for documents, pictures, temp, history, internet cache, etc.
I didn't mount the local TC volume and tried to send an email and noticed it wouldn't let me because my temp folder was full or unavailable.

Is there anyway to point thunderbird to wrote temp files to the USB drive and not Windows' default?

westclox
Offline
Last seen: 16 years 4 weeks ago
Joined: 2008-10-31 15:05
Setting the TMP environment variable

You must set the TMP environment variable to the desired folder. Put a batch file alongside Thunderbird Portable's executable. Insert the following contents in it:

@echo off
set TMP=%~dp0temp-folder
"%~dp0ThunderbirdPortable.exe"

Now all you have to do is run the batch file instead of ThunderbirdPortable.exe. The modified environment variables are only valid for the current cmd.exe session, meaning this won't change the place where other apps store their temporary files.

(%~dp0 simply gets the full path of the batch file, including drive letter.)

westclox
Offline
Last seen: 16 years 4 weeks ago
Joined: 2008-10-31 15:05
Command extensions

Almost forgot. You also need to enable command extensions.

Add this as the second line of the previous batch script:

setlocal enableextensions

And this as the last line:

endlocal

Log in or register to post comments