• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

eventlog options are positional

Jun 4, 2008
19
0
#1
eventlog /Stest /I "This is a test message" works but
eventlog /I /Stest "This is a test message" does not work

Result:
[C:\]eventlog /Stest /I "This is a test message"

[C:\]eventlog /I /Stest "This is a test message"
TCC: (Sys) The parameter is incorrect.
"Stest"
Usage : EVENTLOG [/Ssource] [/Cn /EIW] message
Is this just a documentation error? That is should I have read the documentation as implying an order to the various options? Or is this a program error.

David
 
#2
eventlog /Stest /I "This is a test message" works but
eventlog /I /Stest "This is a test message" does not work

Result:


Is this just a documentation error? That is should I have read the documentation as implying an order to the various options? Or is this a program error.

David
The quick help shows the syntax a bit differently, with [/Ssource] first, perhaps suggesting it belongs there.
Code:
Usage : EVENTLOG [/Ssource] [/Cn /EIW] message
 
Top Bottom