Pages: [1]   Go Down
Author Topic: Preferences file  (Read 408 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I use a portable hard drive so that I can work on my home computer, or at school. The problem is, I can't save files at school on the C drive. So, my problem is that at home I can set the preferences for my sketch library to my portable hard drive. But, at school, Arduino can't see the preferences file (which is of course still on my home computer.)

Is there any way, or should there be a way to have the preferences file in the same directory as the arduino program?

I spent a lot of time working on a sketch at school, and when I got home I expected to find it on my portable drive. It wasn't, and the school drive gets erased when I log out, so my work is gone.

Other than that, the Arduino is great,

Thanks in advance for an answer,

harnold
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23728
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you open the file from your portable drive to start with, and then save, doesn't it save back to the portable drive?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Denver
Offline Offline
God Member
*****
Karma: 19
Posts: 778
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can save your preferences.txt file in your IDE folder by doing the following . . .

Edit the preferences.txt - the one in the "lib" folder - under the IDE install.
Remove the comment mark before "settings.path=data". i.e.

Code:
# if you don't want settings to go into "application data" on windows
# and "library" on macosx, set this to the alternate location.
settings.path=data

This will put your user preferences.txt in the "data" folder in the IDE.
(You may have to make the "data" folder and copy a preferences.txt into it.)
Logged

"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, that was exactly what I needed to know.
Logged

Pages: [1]   Go Up
Jump to: