Moving the Arduino Library to another drive in Windows

I would like to move my Arduino sketchbook folder, including the libraries sub-folder, from my C: drive onto another drive.

I know that I can change the Sketchbook location in the IDE and I have done that and most things work OK except that when I try to view a library definition in a sketch the IDE says it cannot find the definition.

I have tried creating a junction point in my User folder on C: drive that points to the new sketchbook folder on the D: drive, but that gives me the same result.

Is there any way to move the sketchbook folder including the libraries to another drive and to retain full functionality?

Hi @dtone1.

This is caused by a bug, which has already been fixed:

The fix was made after the time of the Arduino IDE 2.3.2 release, so it is only available when using the latest nightly build. You can download the nightly build from the links here:

https://www.arduino.cc/en/software#nightly-builds

At this time, only if you use the nightly build.

@ptillisch
Thanks for this, I will try a nightly and report back.

Any news on when the next release is due?

@ptillisch
I have installed the latest nightly build and can confirm that it does fix my problem.

I will wait for 2.3.3, hopefully its release will not be too far into the future.

You are welcome. I'm glad it is working now.

Regards, Per

2.3.3 became available today and I was able to use that to move the library files to my D: drive.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.