Error compiling changes in a sketch

Greetings,

I'm not really new to Arduino or microcontrollers in general, but I am new to the Arduino IDE.

I'm getting an odd error when I make a change to a sketch and then recompile the program.

open C:\Users\A00841592\AppData\Local\arduino\sketches\DBA1B588694744898A0FE99279438520\build.options.json: Access is denied.

Compilation error: open C:\Users\A00841592\AppData\Local\arduino\sketches\DBA1B588694744898A0FE99279438520\build.options.json: Access is denied.

If I delete the arduino directory, it works until I make a change and re-compile.

How do I set a custom build directory for my sketches so it isn't using AppData\etc...?

Ralph

which IDE version and in which environment (windows likely given the )

IDE 2.3.7 on a Windows 11 machine.

Windows 11 pro specifically, in an educational environment.

I plan on using the Arduinos instead of Basic Stamps in my summer Micro-controller class and need to be ready for all errors a student may see.

I'll move the post to the IDE category, it has more chances to be seen there for the relevant participants