OneNote Gem Add-Ins

Automatic Check and Remove OneNote Broken Links

Get Command Line from OneNote Batch Processor

  1. In "OneNote Batch", Click "Home" tab -> "Recovery" group -> "Check Links" feature.
  2. Right click on section tree in left side.
  3. Click "Copy Command Line to This" item on right click menu. This feature will copy command line to clipboard.
Picture
 
"Remove All Broken Links" Command Line
After paste to NotePad.exe from clipboard, we can pick out the "Remove all Broken Links" command line.

"C:Program Files (x86)OneNoteGemNoteBatch2016NoteBatchProcessor.exe" /RemoveBrokenLinksAll
Picture
 
Windows Task Scheduler

Next, we can create a Windows Task Scheduler to run "OneNote Batch Processor" to remove all broken links in OneNote every day.

  1. Go to "Windows Control Panel" -> "Administrative Tools" -> run "Task Scheduler".
  2. Click "Create Basic Task" -> enter a name for the new task.
  3. Next, choose "Daily" in Trigger.
  4. Next, set "Recur every 1 day".
  5. Next, choose Action as "Start a Program".
  6. Next, 
    in "Program/Script", select "C:Program Files (x86)OneNoteGemNoteBatch2016NoteBatchProcessor.exe".
    in "Add arguments (optional)", input /RemoveBrokenLinksAll
  7. Next, click "Finish" to create a Task Scheduler.
 
 
 
Run and Test a Task Scheduler

After create a scheduler, we can find "Remove OneNote Broken Links" in "Task Scheduler Library".
To test this scheduler, click "Run" Selected Item in "Action" Pane.
Picture
 
Windows Task Manager
We can find "NoteBatchProcessor.exe" running in Windows Task Manager.
Picture
 
OneNote Batch Processor Log File
When "OneNote Batch" is running in background, we can go to folder
C:UsersPublicDocumentsOneNoteGemOneNoteBatch to open "OneNoteBatch_User.log" to view "OneNote Batch Processor" is checking which notebook now.
Picture
 

Download OneNote Batch