Once you’ve learned how to navigate directories on Windows 10, the next step is learning how to find and open files using the Command Prompt. It’s just as easy as navigating through and opening a file in File Explorer. Here’s how it’s done.

学习完Windows 10上的目录导航后 ,下一步就是学习如何使用命令提示符查找和打开文件。 就像在File Explorer中浏览和打开文件一样简单。 这是完成的过程。

First, open the Command Prompt on your PC by typing “cmd” in the Windows Search bar and then selecting “Command Prompt” from the search results.

首先,通过在Windows搜索栏中键入“ cmd”,然后在搜索结果中选择“命令提示符”,在PC上打开命令提示符 。

With the Command Prompt opened, you’re ready to find and open your file.

打开命令提示符后,您就可以找到并打开文件。

使用命令提示符查找文件 (Find Files Using Command Prompt)

Maybe you already know the file path to the item you want to open–maybe not. If not, you don’t need to search through File Explorer just to come back to the Command Prompt later. You can use this command instead:

也许您已经知道要打开的项目的文件路径,也许还不知道。 如果不是这样,您不需要搜索文件浏览器就可以稍后再返回到命令提示符。 您可以改用以下命令:

dir "\search term*" /s

dir "\search term*" /s

Just replace “search term” with, of course, the actual search term. So, if we wanted to locate our file called “Example File,” we’d use this command:

当然,只要用实际的搜索词替换“搜索词”即可。 因此,如果我们要查找名为“示例文件”的文件,则可以使用以下命令:

dir "\example file*" /s

dir "\example file*" /s

Command Prompt will now search and find all instances of the search term you entered. It will (1) show you the file path, and (2) give you the file name and extension.

现在,命令提示符将搜索并找到您输入的搜索词的所有实例。 它将(1)向您显示文件路径,以及(2)给您文件名和扩展名。

Now that we’ve found our file, let’s open it.

现在我们找到了文件,让我们打开它。

使用命令提示符打开文件 (Open Files Using Command Prompt)

To open the file, you need to navigate to the directory in the Command Prompt that contains the file you would like to open. In this example, we’ve created an “Example” folder in our “Documents” folder, so we’ll head there.

要打开文件,您需要导航到命令提示符中的目录,该目录包含您要打开的文件。 在此示例中,我们在“文档”文件夹中创建了“示例”文件夹,因此我们将前往该文件夹。

In Command Prompt, use the Change Directories command ( cd <folder> ) to navigate through your folders. Because we’re currently at the top level of the computer’s file system, we’ll need to go to “Documents” first and then “Example.” So, we’ll use this command:

在命令提示符中,使用“更改目录”命令( cd <folder> )浏览文件夹。 因为我们目前处于计算机文件系统的顶层,所以我们需要先进入“文档”,然后再进入“示例”。 因此,我们将使用以下命令:

cd Documents\Example

cd Documents\Example

Note that you must navigate to the immediate file structure. In this case, we can’t skip “Documents” and jump straight to “Example.”

请注意,您必须导航到立即文件结构。 在这种情况下,我们不能跳过“文档”而直接跳至“示例”。

Once you have inputted your command, press the Enter key. You’ll now be in that folder.

输入命令后,按Enter键。 您现在将在该文件夹中。

It’s now time to open the file within that folder. Our file is named “Example File.”

现在是时候在该文件夹中打开文件了 。 我们的文件名为“示例文件”。

To open the file, enter the file name and extension in quotations. In this case:

要打开文件,请在引号中输入文件名和扩展名。 在这种情况下:

“example file.docx”

“example file.docx”

The file will now open.

现在将打开文件。

To make things a bit quicker, you can actually navigate to the correct folder and open the file in a single command. Assuming we are back at the top level, we would run this command:

为了使操作更快一些,您实际上可以导航到正确的文件夹并通过单个命令打开文件。 假设我们回到顶层,我们将运行以下命令:

“Documents\Example\example file.docx”

“Documents\Example\example file.docx”

The only difference is you don’t add the cd command and the entire path is in quotations.

唯一的区别是您不添加cd命令,并且整个路径都用引号引起来。

翻译自: https://www.howtogeek.com/674537/how-to-find-and-open-files-using-command-prompt/

如何使用命令提示符查找和打开文件相关推荐

  1. 1.14 快速查找并打开文件 [原创iOS开发-Xcode教程]

    原文:http://coolketang.com/staticCoding/5a990cf30b61607bf6cdcfdf.html 1. 本节课将为您演示,如何快速查找并打开目标文件.首先双击打开 ...

  2. VS2013 编译程序时提示 无法查找或打开 PDB 文件

    "Draw.exe"(Win32):  已加载"C:\Users\YC\Documents\Visual Studio 2013\Projects\Draw\Debug\ ...

  3. 成功解决(Win32): 已加载“C:\Windows\SysWOW64\ntdll.dll”。无法查找或打开 PDB 文件。

    成功解决(Win32): 已加载"C:\Windows\SysWOW64\ntdll.dll".无法查找或打开 PDB 文件. 目录 解决问题 解决方法 解决问题 解决方法 工具栏 ...

  4. visual studio 调试时提示 已加载“C:\Windows\SysWOW64\ntdll.dll”。无法查找或打开 PDB 文件。

    问题描述 "Win32Project3.exe"(Win32): 已加载"D:\software\VS2013\VS2013 文档\Win32Project3\Debug ...

  5. Visual Studio无法查找或打开 PDB 文件解决办法

    Visual Studio无法查找或打开 PDB 文件解决办法 用VS调试程序时,有时会在VS底部的"输出"框中提示"无法查找或打开 PDB 文件".这该怎么解 ...

  6. 解决“C:\Windows\System32\ntdll.dll”。无法查找或打开 PDB 文件问题

    解决"C:\Windows\System32\ntdll.dll".无法查找或打开 PDB 文件问题 参考文章: (1)解决"C:\Windows\System32\nt ...

  7. (项目名).exe”。已加载符号。 无法查找或打开 PDB 文件。

    无法查找或打开 PDB 文 "wb.exe"(Win32):  已加载"D:\work\test\wb\x64\Debug\wb.exe".已加载符号. &qu ...

  8. 解决方案:“Project1.exe”(Win32): 已加载“C:\Windows\SysWOW64\KernelBase.dll”。无法查找或打开 PDB 文件。

    解决方案:"Project1.exe"(Win32): 已加载"C:\Windows\SysWOW64\KernelBase.dll".无法查找或打开 PDB ...

  9. “Project1.exe”(Win32): 已加载“C:\Windows\syswow64\ntdll.dll”。无法查找或打开 PDB 文件。 “Project1.exe”(Win32): 已加载

    "Project1.exe"(Win32): 已加载"C:\Windows\syswow64\ntdll.dll".无法查找或打开 PDB 文件. " ...

  10. vs2015+openCV(x64)出现运行时”无法查找或打开 PDB 文件”问题

    vs2015+openCV(x64)出现运行时"无法查找或打开 PDB 文件"问题 1. 前言 最近用到VS+openCV,配置环境过程中遇到一些了问题,在这里总结下,希望看到的以 ...

最新文章

  1. Ionic实战 自动升级APP(Android版)
  2. 独家干货 | 吴恩达深度学习专项课程精炼笔记!
  3. SqlParameter的作用与用法
  4. JavaCL 1.0.0-RC3 发布,性能大幅提升
  5. how to install nc on centos8及nc应用
  6. delphi函数,识别字符集编码
  7. zabbix 之 磁盘发现脚本
  8. 浅谈嵌入式软件的未来发展
  9. 理工计算机系相关内容,弗吉尼亚理工大学计算机系
  10. 如何让应用出现在LINUX的右键/打开方式/更多应用
  11. 中国智能汽车行业市场需求趋势与发展战略规划建议报告2022-2028年版
  12. STM32-FSMC外扩内存SRAM
  13. 《Learning_object_interactions_and_descriptions_for_sematic_image》论文阅读
  14. java学习总结(16.06.07)类的静态成员和非静态成员
  15. 阿达的红外射频遥控盒子(一)
  16. 实时风控引擎项目部署
  17. vue尚品汇商城项目-day07【vue插件-49.(了解)自定义插件】
  18. 音频/面板资源管理器_AudioPanelManager
  19. CGAN之条件生成对抗网络(Matlab)
  20. 转载一篇RC电路分类

热门文章

  1. snapchat_Snapchat的新地图功能介绍(以及如何禁用它)
  2. 一个屌丝程序猿的人生(二十六)
  3. iOS crash分类,Mach异常、Unix 信号和NSException 异常
  4. redisRDB持久化中dir路径配置问题
  5. Word2010如何从正文开始设置页码
  6. 小白龙——Java 开发环境 一(JDK的安装)
  7. 在Office的Excel中打开WPS很慢
  8. [原创]和Taskmgr过不去篇(无厘头版)
  9. Tomcat日志切割工具 logrotate
  10. Golang 内存分配之逃逸分析