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?
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.)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