windows7 中的 wmic 错误(无效的 XSL 格式) [英] wmic error (invalid XSL format) in windows7
问题描述
wmic process get /format:csv
这个命令在 Windows 7 中有什么问题?
What is wrong with this command in Windows 7?
我明白了:
无效的 XSL 格式(或)文件名.
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 进程获取 ProcessId,Description,CommandLine,ExecutablePath,ParentProcessId/format:"%WINDIR%System32wbemen-uscsv"
当然,不同地区的en-us"会有所不同.
Of course, the "en-us" will be different for different locales.
如果要将输出重定向到文件,请在 process 关键字之前添加一个开关 /output:"your filename here"
If you want to redirect output to a file add a switch /output:"your filename here" before the process keyword
这篇关于windows7 中的 wmic 错误(无效的 XSL 格式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!