Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.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
Windows CLI:在特定文件夹中查找目录为/s/b的文件_Windows_Command Line Interface_Dir - Fatal编程技术网

Windows CLI:在特定文件夹中查找目录为/s/b的文件

Windows CLI:在特定文件夹中查找目录为/s/b的文件,windows,command-line-interface,dir,Windows,Command Line Interface,Dir,我正试图找到一个文件并获取它的完整路径。为此,我想执行以下命令: dir "install.log" /s/b 问题是,该命令只搜索当前目录和子文件夹,但我想查看整个驱动器。是否有任何方法可以指定搜索路径,就像在Linux中使用find(find/path-name“file”) 所以你可能会问,为什么我不简单地用cd更改目录呢?我通过ssh远程连接到运行copssh的Windows计算机。该命令始终在copssh的主目录中执行 dir /s /b \install.log 只需指示di

我正试图找到一个文件并获取它的完整路径。为此,我想执行以下命令:

dir "install.log" /s/b 
问题是,该命令只搜索当前目录和子文件夹,但我想查看整个驱动器。是否有任何方法可以指定搜索路径,就像在Linux中使用
find
find/path-name“file”

所以你可能会问,为什么我不简单地用
cd
更改目录呢?我通过ssh远程连接到运行copssh的Windows计算机。该命令始终在copssh的主目录中执行

dir /s /b \install.log 
只需指示dir命令从当前驱动器的根目录开始,或者根据需要添加驱动器

dir /s /b x:\install.log