Arduino IDE start up parameter: sketchbook folder

Hello Community,

is there a option / commandline flag to set the sketchbook folder on startup of the IDE?
why i do want to do this?
I have for every project a separate folder. in every project folder there is a folder called 'arduino_sketchbook'.
Example:

 - prj1_HelloWorldClock
    - infos
    - datasheets
    - arduino_sketchbook
       - sketch1
       - sketch2
       - libraries
       - examples
 - prj2_WakeUpLight
    - infos
    - datasheets
    - arduino_sketchbook
       - sketch1
       - sketch2
       - libraries
       - examples
....

so my idea was to make some File shortcuts all pointing to the arduino IDE but with different command line parameters so that my needed arduino_sketchbook is loaded automatically.
(i use windows 7 and Arduino IDE 1.0.4)

if someone has an idea how to do this - just answer :slight_smile:

sunny greetings
stefan

Why not use File:Preferences, and put your default location, and then put your folders in there. When you open the IDE, the folders will be shown in one of the dropdown menus (Sketchbook maybe? I don't have it in front of me).

CrossRoads:
Why not use File:Preferences, and put your default location, and then put your folders in there. When you open the IDE, the folders will be shown in one of the dropdown menus (Sketchbook maybe? I don't have it in front of me).

Correct. And you also need the single user sketch directory to take advantage of user library folder for storing and access to contributed library software files, and a hardware folder for non-standard arduino AVR chip boards. Don't fight the user sketch directory concept, rather utilize it as designed.

Lefty

Thanks for your answers,

you are right with the sub folder -
but i enjoy to have only the user library that i use in this project -
ok - sometimes its a bit to much copy and paste -
and some times its the cleanest way to have things separated from each other..
i will look into command-line compilation in some time..
but for now this is a step to big for me..
i love the 'just work' concept of the arduino IDE :slight_smile:

have fun
stefan

You don't need to put the libraries inside of your sketch folders for your sketch to work. And your sketch will only use whatever library you tell it to use. You're making things more difficult than you need to.