Cmd 如何在Windows中查找目录和子目录中的所有头文件
我最近开始使用windows操作系统(2012 R2),并试图在我的目录和it子目录中查找所有标题格式为(*.h)的文件 当我在linux shell中运行时,我就是这样得到它的: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
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中的/