Here are some clarification regarding my original problem.
I am using a "Linuxstyle-setup" with separate partitions for System (O/S), Programs & Media (audio, video, documents & filearchive).
So i have all Onenote-notebooks on my docs-partition which is labeled U:
And Microsoft obviously does not understand that people might be using a nonstandard setup with multiple partitions, they always assume everything is on C: ....
So notebooks that are not in the default location on "C:\user\XXX...." will not be opened automatically in Onenote.
And they will not be opened the second time you start Onenote after a fresh install, not even if you move them to the default location.
Which means that if you forget to move them before you start Onenote....
Of course you could move all notebooks to the default location before you start Onenote for the first time, but then you will have to move them back to your "own" folder afterwards...
I wrote a program (a batch-file) that fixed it.
How to import OneNote notebooks
It is very simple:
START "" "E:\PROGRAM FILES\Office 2010\Office14\ONENOTE.EXE"
FOR/D/R %X IN (*.*) ("E:\PROGRAM FILES\Office 2010\Office14\ONENOTE" /FILENAME "%X" )
First i start Onenote (in a new command-window since i run the program from a filemanager (Total Commander) and want a new process running in the background)
followed by a pause so Onenote has time to start before the import starts, when Onenote has started i just press any key to let the program continue
followed by a simple FOR-loop that opens 1 (ONE) notebook in each folder, there is no need to open all of them since the rest will be opened automatically
and then exiting the program so the window closes
So if you want to use this program, add the correct path to your:
Office-folder in line 2 and 5
Notebook-folder in line 4
Of course you can add a custom delay instead of having the program pausing, waiting for Onenote to start,
but i prefer to doublecheck "manually" before the program continues, because if Onenote has not started properly when it continues, then you will see some "unwanted" behaviour, forcing you to manually delete notebooks opened in the wrong place etc.....
And, since this is a BTM-file and not a BAT-file, you will need TCC/LE, the free version of Take Command, available here:
Personally i prefer TCC over CMD since it has more commands, is more user-friendly and lets you do more advanced programming.
Do not ask me how to do this in CMD...
UPDATE: When restoring programs after a harddrive-failure i noticed an error in my backup of the import-program above.
My program on my harddisk however has worked perfectly for years, so it seems that i accidentally posted the wrong version on the forum.
But since no one has complained, it means that no one has used it...
I have updated the program above, now it works.
I know, i just used it to import my notebooks....