How to import OneNote notebooks

HOWTO´s and Tips & Tricks for Windows Server to Workstation.
Forum rules
THE WHOLE IDEA WITH THIS GUIDE-SECTION IS TO MAKE USEFUL INFORMATION EASY TO FIND, SO WE NEED TO KEEP THIS SECTION "CLEAN" !

READ THE FORUMRULES (POSTED IN A THREAD BELOW) BEFORE POSTING !

How to import OneNote notebooks

Postby hackerman1 » 22 Mar 2016, 22:57

Athough not related to Windows Server, you might find this program useful....

I am using a "Linuxstyle-setup",
with separate partitions for System (O/S), Programs and 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

Code: Select all
@ECHO OFF
START "" "E:\PROGRAM FILES\Office 2010\Office14\ONENOTE.EXE"
PAUSE
U:\DOCS\OneNote Notebooks\
FOR/D/R %X IN (*.*) ("E:\PROGRAM FILES\Office 2010\Office14\ONENOTE" /FILENAME "%X" )
EXIT


It is very simple:
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:
http://jpsoft.com/all-downloads/downloads.html

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...
Security: USER-account, EAM-full, Comodo´s HIPS, Windows FireWall, WinPatrol+, HOSTS-file,
UAC (Max), Sandboxie, EMET, Pale Moon with Noscript, AD-Block & DoNotTrackPlus,
a working "main CPU" & "2 optical input units".
hackerman1
Win2008Workstation Admin
Win2008Workstation Admin
 
Posts: 559
Joined: 13 Jun 2010, 02:55

Return to Guides

Who is online

Users browsing this forum: No registered users and 1 guest

cron