我想检查项目中的所有all和lib是否都是使用
dumpbin /headers *.obj | findstr machine其输出例如8664 machine (x64)的列表。如何打印列出的每个文件的文件名?或者,在使用for循环之前,我必须将文件名提取到单独的文本文件中吗?
发布于 2013-01-17 23:28:08
看了很久之后,我找到了解决问题的办法
FOR /F %i IN ('DIR /B 2^>nul *.obj') DO (
echo | set /P=%i:
dumpbin /headers %i | findstr machine
)发布于 2013-01-15 22:42:26
dumpbin /headers *.obj | findstr "machine Dump"将打印"Dump of file....“行和机器类型行。
从findstr帮助
使用空格分隔多个搜索字符串,除非参数以/C为前缀。例如,'FINDSTR "hello there“x.y‘在文件x.y中搜索"hello”或"there“。‘'FINDSTR /C:"hello there“x.y’在文件X.Y中搜索"hello there”。
https://stackoverflow.com/questions/14320188
复制相似问题