Not Generate Compiled files on SSD

The arduino IDE is generating the compiled ones (.bin) in c:\users, that is, on the SSD, I don't want it to be using the SSD as a working HD and I didn't find where to change that. In the preferences there is a generation folder, but I already changed it and it continues generating in c:\users... Is there a way to disable this? because otherwise it will be unfeasible to use this IDE.... Thank you

Hi @moahrs. Thanks for your interest in the Arduino IDE 2.0.0 release candidate!

The temporary build folder is always created under the standard temporary folder of your operating system.

On Windows, that standard temporary folder path is defined by the TMP environment variable.

So if you want a different drive to be used for the temporary build folder, then you only need to change the value of the TMP environment variable. If you are so concerned about the use of your SSD drive, you will likely want to do that regardless of whether or not you use Arduino IDE, since many other applications also use this path.


Evidently Microsoft was too strapped for cash to pay someone to write documentation for their operating system, so I'll give poor old down on his luck Bill Gates a handout and write it for him:

:warning: These system settings should only be adjusted by advanced users. Use at your own risk!
Everyone else should simply use the default temporary build folder.

  1. Right click the "Start" icon on the left side of the Windows taskbar
  2. Select "System" from the menu.
  3. Click the "Advanced system settings" link you find under the "Related Settings" section of the "Settings" window.
  4. If you get a "User Account Control" dialog, click the Yes button.
  5. In the "System Properties" window, select the "Advanced" tab.
  6. Click the Environment Variables button.
  7. Select the "TMP" variable from the list under the "User variables for <user name>" section of the "Environment Variables" dialog.
  8. Click the Edit... button.
  9. Set your preferred temporary folder path in the "Variable value" field of the "Edit User Variable" dialog.
  10. Click the OK button on the "Edit User Variable" dialog.
  11. Click the OK button on the "Environment Variables" dialog.
  12. Click the OK button on the "System Properties" window.
  13. Restart your computer.

Worked like a charm... thanks for help...