Group:  Other Microsoft Office Products ยป microsoft.public.onenote
Thread: Using OneNote CLI /new switch

Geek News

Using OneNote CLI /new switch
"magoo" <i.am.magoo[ at ]gmail.com> 12/1/2008 9:52:07 PM
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?

--
Regards
magoo
Re: Using OneNote CLI /new switch
"David" <david.powerbits[ at ]nogmailspam.com> 12/1/2008 11:21:19 PM
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.
--

David Olsen
www.powerbits.com.au


"magoo" <i.am.magoo[ at ]gmail.com> wrote in message
news:gh1mab$92c$01$1[ at ]news.t-online.com...
[Quoted Text]
> 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?
>
> --
> Regards
> magoo
>


Re: Using OneNote CLI /new switch
"David" <david.powerbits[ at ]nogmailspam.com> 12/2/2008 2:54:50 AM
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" <david.powerbits[ at ]nogmailspam.com> wrote in message
news:eVwoMuAVJHA.4372[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> 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.
> --
>
> David Olsen
> www.powerbits.com.au
>
>
> "magoo" <i.am.magoo[ at ]gmail.com> wrote in message
> news:gh1mab$92c$01$1[ at ]news.t-online.com...
>> 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?
>>
>> --
>> Regards
>> magoo
>>
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net