var processStart = new System.Diagnostics.ProcessStartInfo("c:\app.exe", "some arguments"); processStart.EnvironmentVariables["TEMP"] = @"D:\mycustomtemp"; var process = new System.Diagnostics.Process(); process.StartInfo = processStart; process.Start();
On Mon, Jul 2, 2012 at 7:58 PM, Ian Thomas <il.tho...@iinet.net.au> wrote: > I’m creating a process (from .NET) that uses python 2.7 to do some stuff, > and would prefer that its temporary file space is somewhere other than the > default on the C: drive. As you can imagine, with SSD drives in common > usage, writing large temporary files could potentially cause some problems. > **** > > I suspect python is forced to use the Windows environment variable TEMP = > %USERPROFILE%\AppData\Local\Temp – I wouldn’t want to change that > permanently for the user, of course.**** > > What are the available options? **** > ------------------------------ > > **Ian Thomas** > Victoria Park, ****Western Australia******** >