xslt - Wmic /format switch invalid XSL? -


i have quick question, should relatively simple have more experience in wmi-command processor (and since i'm absolute beginner thats not hard :-) )

i fail understand why wmic /format switch works way does. open cmd.exe , type

wmic process list brief /format:htable > processlist.html 

this want , no bothers further on. whereas if go wmic processor, , try execute same command above...

wmic:root\cli>process list brief /format:htable > processlist.html 

i receive error tag: "invalid xsl format (or) file name."

http://img209.imageshack.us/img209/5383/37tn.png

here goes screenshot. note have copied xsl files wbem sys32 dir

can explain me why these 2 commands me same, difference 1 executed outside wmic environment , other 1 inside, latter 1 doesn't work? fail understand it.

please advise can comprehend bit better! :-)

you attempting use cmd.exe > redirection while within interactive wmic context. can't work.

you can use wmic /output:filename switch while in interactive mode. each subsequent command overwrite output of previous command. can multiple commands go same file using /append:filename instead. can reset output stdout using /output:stdout.

/output:processlist.html process list brief /format:htable /output:stdout 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -