wmic错误(无效的XSL格式)在windows7 [英] wmic error (invalid XSL format) in windows7

查看:1656
本文介绍了wmic错误(无效的XSL格式)在windows7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

wmic process get /format:csv

在Windows 7中使用此命令错误?

What is wrong with this command in Windows 7?

我得到:


格式(或)文件名。

Invalid XSL format (or) file name.


推荐答案

这是wmic命令中的一个错误。有人建议将XSL文件复制到%WINDIR%\system32(或等效的64位)。但是,以下命令也可以正常工作,而不需要复制文件:

It's a bug in the wmic command. It's been suggested to copy XSL files into the %WINDIR%\system32 (or equivalent if 64 bit.) However, the command below works just as well without the need to copy files:

wmic process get ProcessId,Description,CommandLine,ExecutablePath,ParentProcessId / format:%WINDIR%\System32\wbem\en-us\csv

wmic process get ProcessId,Description,CommandLine,ExecutablePath,ParentProcessId /format:"%WINDIR%\System32\wbem\en-us\csv"

当然,en-us对于不同的区域设置会有所不同。

Of course, the "en-us" will be different for different locales.

如果要将输出重定向到文件在过程关键字

If you want to redirect output to a file add a switch /output:"your filename here" before the process keyword

这篇关于wmic错误(无效的XSL格式)在windows7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆