>-----Original Message-----
>I just attempted to reproduce the problem you describe
using 2.0 SP1 on
>WinXP, and succeeded in creating the instance.
>
>It's possible an illegal character exists in the
environment variable (which
>is presumably used in your config file even if it is not
specified in the
>NSControl command). Try overriding the environment
variable as follows:
>
>> c:
>> cd "C:\Program Files\Comp\NotificationServices\Audit"
>> nscontrol create -in AppDefinition\appConfig.xml
>BaseDirectoryPath="C:\Program
Files\Comp\NotificationServices\Audit"
>
>If this succeeds, try setting the environment variable
again, and rerunning:
>
>> set BaseDirectoryPath="C:\Program
Files\Comp\NotificationServices\Audit"
>> nscontrol create -in "%BaseDirectoryPath%
\AppDefinition\appConfig.xml"
>
>Let me know if this helps!
>
>-Colin Meek [MSFT]
>
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>Use of included script samples are subject to the terms
specified at
>
http://www.microsoft.com/info/cpyright.htm. >
>Please do not send e-mail directly to this alias. This
alias is for
>newsgroup purposes only.
>--
>
>"J" <anonymous@discussions.microsoft.com> wrote in message
>news:073801c4aad5$3917bef0$a601280a@phx.gbl...
>> Hi,
>>
>> I've just moved my Notification Services installation
to a
>> new directory with a space in the name. Previously the
>> Notification Services were installed on C:\, they've now
>> moved to C:\Program Files.
>>
>> The problem is this, when I try running the command:
>>
>> nccontrol create -in "%BaseDirectoryPath%
>> \AppDefinition\appConfig.xml"
>>
>> where %BaseDirectory is:
>>
>> C:\Program Files\Comp\NotificationServices\Audit
>>
>> I get the following error:
>>
>> Unhandled Exception in create
>> ex.Message =
>> Illegal characters in Path
>>
>> Now as far as I can tell, it's getting upset about the
>> space in Program Files. I've even tried running in from
>> the actual directory without the path and got the same
>> error.
>>
>> I've tried C:\Progra~1\, but that didn't work.
>>
>> Does anyone know how to get around this? I've checked
the
>> Microsoft Notification web site, but couldn't find
>> anything.
>>
>> Thanks In Advance,
>> John
>
>
>.