Using OneNote CLI /new switch

M

magoo

Hi folks,

I assumed that with the /new switch I could create a new section with the
specified parameter as name.
All I get is a new section with the name "Section 1", no matter what I add.

Can anyone tell me what to do here?
And if a pro is on the way: My final goal would be to create a sheet within
a fixed section. Is that possible at all?
 
D

David

As they like to say, this feature is by design...

http://office.microsoft.com/en-us/onenote/HA101778331033.aspx

"Creates a new section, called New Section 1, in the default notebook folder
(for example, OneNote Notebooks). The filename parameter must include the
disk and folder path and a unique file name with the .one file name
extension. If the specified file name already exists in the target folder,
the number in the section name is increased incrementally (for example, if
New Section 1 was the specified file name but the file already existed, a
file named New Section 2 would be created)."

The parameter only specifies the file name of the .one file. There appears
to be no option to specify the section name.
 
D

David

If you are into PowerShell you could download the OneNote Provider:
http://bdewey.com/2007/07/18/onenote-powershell-provider/


And then use commands similar to these to create any section or page names
you like:
new-item -path OneNote:\Technical\MySection -type section
new-item -path OneNote:\Technical\MySection\MyPage -type page

--

David Olsen
www.powerbits.com.au


David said:
As they like to say, this feature is by design...

http://office.microsoft.com/en-us/onenote/HA101778331033.aspx

"Creates a new section, called New Section 1, in the default notebook
folder (for example, OneNote Notebooks). The filename parameter must
include the disk and folder path and a unique file name with the .one file
name extension. If the specified file name already exists in the target
folder, the number in the section name is increased incrementally (for
example, if New Section 1 was the specified file name but the file already
existed, a file named New Section 2 would be created)."

The parameter only specifies the file name of the .one file. There
appears to be no option to specify the section name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top