I know about Path.GetTempFileName() and how to get the temp folder (usually its on your C drive)
But how do i get a temp filename on a specific partition? i think as a workaround i’ll do something like targetBaseDir/temp.tmp and then File.Move when its complete.
Why not just create your own GetTempFilePath method?
Something like this
Or you can use the native GetTempFileName method that is used by
System.IO.Path.GetTempFileName()