Share via

Problem on opening OneNote web using a batch script

Anonymous
2023-03-10T08:49:28+00:00

Hello there,

I am trying to open my OneNote web using a batch script.

I copied the "link to this page". I created a simple batch file like - start chrome.exe "the URL".

But, when I run the batch script it opens the web page saying:

This item might not exist or is no longer available

This item might have been deleted, expired, or you might not have permission to view it. Contact the owner of this item for more information.

This is when I can open the page with the same link directly on the browser or even with the same comment line on CMD.

Microsoft 365 and Office | OneNote | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-03-10T17:52:45+00:00

    Thank you for the explanation.

    Bernd

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-03-10T16:51:00+00:00

    Thank you for your reply Bernd,

    It works fine.

    Why batch: opening the page is not the final goal here. the script will eventually open different pages under different conditions.

    Thanks,

    LiaPer

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-03-10T16:24:34+00:00

    The problem is caused by the "%" characters in the URL. Double it all. Then it works. Tested it 😁

    BTW: Why a batch file, not a desktop shortcut ?

    Bernd

    Was this answer helpful?

    0 comments No comments