Insert multiple files into OneNote

Nouf Aldossary 26 Reputation points
2021-08-02T07:12:13.447+00:00

Hi there, How do I put multiple files (PDFs or images) into OneNote in one time?

OneNote Management
OneNote Management
OneNote: A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.Management: The act or process of organizing, handling, directing or controlling something.
174 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,581 Reputation points
    2021-08-03T05:42:17.02+00:00

    @Nouf Aldossary

    To batch Import PDFs or images to OneNote, you need the code help.

    I find a similar thread "How to insert multiple file printouts at one time?", there is a .bat file could insert multiple PDF files into OneNote as printouts at one time.

    • Go to OneNote desktop client > Options > Send to OneNote > Under "Other Content" section, set one page for "Print to OneNote".
      120034-image.png
    • Search Printers & Scanners and set "Send To OneNote 2016" as the default printer.
      120044-image.png
    • Set one PDF reader program as the default program for pdf files.
    • Put all the pdfs in a folder, on my test environment, I call it as "Test".
    • Create a .txt file, copy the command below and paste into it, then rename it printPdfs.js as script file in the "Test" folder. Please pay attention to file name extensions.
      new ActiveXObject("Shell.Application").ShellExecute(WScript.Arguments.Item(0),"","","print","1");
    • The same action as above to create a batch file and rename it printPdfs.bat in the same folder.
      @for /f "delims=" %%a IN ('dir /b *.pdf') do call cscript //nologo printPdfs.js "%%a"
    • Double-click the batch file (printPdfs.bat).
      120022-image.png

    Hope the information could help you.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Muhammad Al-Salman 0 Reputation points
    2023-11-06T19:29:35.7066667+00:00

    Check out this video, Onetastic runs much smoother than script

    0 comments No comments