CritterNYC wrote:chris_s wrote:in order to get it not to use the hard drive at all this works for the firefox.bat file in the root of the usb drive it will create an "application data" folder there.
...
set USERPROFILE=%cd%
Unfortunately, messing with environment variable affects other apps than Mozilla. I'd argue that leaving a plugins file on the host PC is better than possibly messing up other running programs and processes.
after setting those environment variables in the .bat file while mozilla was running I did start a new command prompt and entered
echo %USERPROFILE%
and I did get the normal location not the one that was specified in the .bat file. I figured that this test was enough to see that in windows that setting variables in .bat files are only inhereted by child processes. In the *NIX world the an export statement in a shell script will only change that variable for child processes but making assumptions about windows based on how *NIX works is dangerous but I figured that this test would be enough.
Do you know exactly how this affects other apps so that I can do some tests?
I was also curious about what you said about starting ff with a .js file. Isn't mozilla the interpreter of the js files and therefore at least part of it needs to run first ?
chris