Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cmd 如何在Windows中查找目录和子目录中的所有头文件_Cmd_Find_Window_Command Line Interface - Fatal编程技术网

Cmd 如何在Windows中查找目录和子目录中的所有头文件

Cmd 如何在Windows中查找目录和子目录中的所有头文件,cmd,find,window,command-line-interface,Cmd,Find,Window,Command Line Interface,我最近开始使用windows操作系统(2012 R2),并试图在我的目录和it子目录中查找所有标题格式为(*.h)的文件 当我在linux shell中运行时,我就是这样得到它的: find /auto/sw_work/fwshared/ibrahims/git/svx/pci_verification -name "*.h" 我得到了以下结果: /auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties

我最近开始使用windows操作系统(2012 R2),并试图在我的目录和it子目录中查找所有标题格式为(*.h)的文件

当我在linux shell中运行时,我就是这样得到它的:

find /auto/sw_work/fwshared/ibrahims/git/svx/pci_verification -name "*.h"   
我得到了以下结果:

/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/BlockStateMainProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/BlueFieldBdfProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/CfgLastIndexProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/CfgLastIndexPropertyProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/ComponentIsUpstreamProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/ConfigTraceProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/DmesgProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/DriverProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/HeaderLogProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/HotPlugProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/I1FrequencyProperty.h
/auto/sw_work/fwshared/ibrahims/git/svx/pci_verification/pci_properties/src/LinkEqProperty.h
在windows命令行中运行时,如何获得以下结果

提前谢谢。

这很简单

列出文件的命令是
dir
。有关各种开关,请参见
dir/?

dir/s/b“\auto\sw\u work\fwshared\ibrahims\git\svx\pci\u-verification\*.h”
/s
开关看起来是递归的(包括subfolders),
/b
开关将以bare格式显示文件(无标题、无摘要、时间戳或大小)

注意:Windows中的目录分隔符是
\
,而不是Unix/Linux中的
/