知行编程网知行编程网  2022-06-24 10:00 知行编程网 隐藏边栏 |   抢沙发  7 
文章评分 0 次,平均分 0.0

微软发布命令行神器,文件误删秒恢复

来源:开源最前线(ID:OpenSourceTop) 猿妹整编


误删文件这事相信大家都碰到过,比如不小心误删了一个重要的文件,一不留神就把自己的硬盘清空了,或者是面对已经被误删的文件手足无措......以前碰到这种情况,有实力的程序员们就靠实力恢复误删的文件,像猿妹这样没实力的,网上购买个小工具也可以帮我恢复,就是费钱。

微软发布命令行神器,文件误删秒恢复

现在好了,最近微软在 Windows 10 应用商店中上架了一款免费的数据删除恢复工具 Windows File Recovery,猿妹再也不用担心误删文件了。

Windows File Recovery基于命令行程序设计,大小仅有8.26MB,所有Windows 10用户均可免费下载使用。


无论是照片、文档、视频还是其他,Windows File Recovery都可以帮你恢复,而且它还支持机械硬盘、固态硬盘、U盘、SD卡等多种硬件类型,遗憾的是,不支持网络驱动器文件恢复。

下面还是一起来看看用法吧:

1、安装下载

首先,通过下载链接打开“Windows File Recovery”的下载界面,点击“获取”按钮安装。(下载地址:https://www.microsoft.com/zh-cn/p/windows-file-recovery/9n26s50ln705?activetab=pivot:overviewtab


微软发布命令行神器,文件误删秒恢复


这里需要提醒大家的是,安装Windows File Recovery操作系统要求Windows 10版本19041.0或更高版本,如果你的系统版本过低会导致安装失败,跳出以下提示:


微软发布命令行神器,文件误删秒恢复


2、使用方法


安装完成之后,我们再来说说Windows File Recovery的具体用法,Windows File Recovery支持三种恢复模式,分别是:默认模式、分段(segment mode)、签名(signature mode)。

默认模式示例

将C盘指定文件恢复到E盘:



将JPEG和png照片从“图片”文件夹恢复到E盘:



或者是将C盘中的Documents文件夹恢复到E盘:



注意:不要忘记末尾的“”

分段模式示例

将PDF和Word文件从C盘恢复到E盘:



使用通配符恢复文件名中包含字符串“ invoice”的任何文件:



签名模式示例

将C盘的JPEG(jpg,jpeg,jpe,jif,jfif,jfi)和PNG照片恢复到E盘:



将C盘中的ZIP文件(zip,docx,xlsx,ptpx等)恢复到E盘:



整体测试下来,恢复过程根据恢复文件的大小决定,有的可能需要几分钟的时间。如果你想停止恢复过程,可以通过快捷键【Ctrl + C】完成。


微软发布命令行神器,文件误删秒恢复


关于详细的命令行语法,微软也给出详细的文档示例,感兴趣的同学也可以去了解了解,英语比较薄弱的小伙伴们,可以通过浏览器翻译软件翻译一下,相信这些都是难不倒你们的。(文档地址:https://support.microsoft.com/zh-cn/help/4538642/windows-10-restore-lost-files

最后还需要提示大家的是,对于熟悉命令行工具的人来说,有了这个工具,在关键时刻帮助还是很大的,如果你不熟悉命令行工具,那就参考微软官方的示例文档,跟着操作也不会错,毕竟是微软官方的免费工具,放着备用也挺好。



近期热门文章


  • 30 行代码实现蚂蚁森林自动收能量(附送源码)

  • Linux 最常用命令:简单易学,但能解决 95% 以上的问题

  • 2021了,最流行的密码依旧是123456

  • 真香!用VS Code直接浏览GitHub代码 !

  • 从万众期待到口碑扑街!唐探3令人失望,用Python来分析一下大家的评论

  • 用Python分析了某大学2000千条表白墙,甜到发腻,原来脱单的秘密是……

  • 值得收藏!20个Python奇技淫巧,让你受益匪浅!

  • 这款IDEA插件刷爆了朋友圈,网友:这用起来有点酸爽~

  • 央视最美记者王冰冰火爆B站,单个视频1800万播放,都说了啥?

<p data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"  /></p><ul class="list-paddingleft-2" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;overflow-wrap: break-word !important;"><section data-tools="135编辑器" data-id="94250" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;font-variant-numeric: normal;font-variant-east-asian: normal;letter-spacing: 0.544px;line-height: 27.2px;border-width: 0px;border-style: none;border-color: initial;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-tools="135编辑器" data-id="94250" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;letter-spacing: 0.544px;border-width: 0px;border-style: none;border-color: initial;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-tools="135编辑器" data-id="94250" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;letter-spacing: 0.544px;border-width: 0px;border-style: none;border-color: initial;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;border-width: 0px;border-style: none;border-color: initial;text-align: right;line-height: 1.75em;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)" style="max-width: 100%;display: inline-block;clear: both;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-brushtype="text" data-darkmode-bgimage="1" data-style="padding: 18px 15px 20px 10px; background-size: 100% 100%; background-image: url('https://www.zkxjob.com/wp-content/uploads/2022/06/wxsync-2022-06-a2a8a5e1e58f30392066a170034ee027.png'); color: rgb(86, 146, 214); text-align: center; letter-spacing: 1.5px; background-repeat: no-repeat;" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(86, 146, 214)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)" data-darkmode-bgimage-16114842087086="1" style="padding: 18px 15px 20px 10px;max-width: 100%;background-size: 100% 100%;background-image: url('https://www.zkxjob.com/wp-content/uploads/2022/06/wxsync-2022-06-a2a8a5e1e58f30392066a170034ee027.png');color: rgb(86, 146, 214);text-align: center;letter-spacing: 1.5px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(86, 146, 214)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)" data-darkmode-bgimage-16114842087086="1" style="max-width: 100%;display: flex;justify-content: center;align-items: center;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16072664870629="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgba(163, 163, 163, 0.9)" data-darkmode-original-color-16073544711184="rgba(230, 230, 230, 0.9)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(86, 146, 214)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)" data-darkmode-bgimage-16114842087086="1" style="margin-left: 2px;max-width: 100%;width: 20px;box-sizing: border-box !important;overflow-wrap: break-word !important;"></section><p data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgb(51, 51, 51)" data-darkmode-original-color-16072664870629="rgb(51, 51, 51)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgb(51, 51, 51)" data-darkmode-original-color-16073544711184="rgb(51, 51, 51)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(51, 51, 51)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)|rgb(51, 51, 51)" data-darkmode-bgimage-16114842087086="1" style="max-width: 100%;min-height: 1em;font-size: 14px;color: rgb(51, 51, 51);text-align: right;line-height: 1.5em;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span data-darkmode-bgimage="1" data-darkmode-bgcolor-16072664870629="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16072664870629="rgb(255, 255, 255)" data-darkmode-color-16072664870629="rgb(51, 51, 51)" data-darkmode-original-color-16072664870629="rgb(51, 51, 51)" data-darkmode-bgimage-16072664870629="1" data-darkmode-bgcolor-16073544711184="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16073544711184="rgb(255, 255, 255)" data-darkmode-color-16073544711184="rgb(51, 51, 51)" data-darkmode-original-color-16073544711184="rgb(51, 51, 51)" data-darkmode-bgimage-16073544711184="1" data-darkmode-bgcolor-16114842087086="rgb(25, 25, 25)" data-darkmode-original-bgcolor-16114842087086="#fff|rgb(255, 255, 255)" data-darkmode-color-16114842087086="rgb(51, 51, 51)" data-darkmode-original-color-16114842087086="#fff|rgba(230, 230, 230, 0.9)|rgb(86, 146, 214)|rgb(51, 51, 51)" data-darkmode-bgimage-16114842087086="1" style="max-width: 100%;font-family: 楷体, 楷体_GB2312, SimKai;letter-spacing: 0.5px;box-sizing: border-box !important;overflow-wrap: break-word !important;">你点的每个“在看”,我都认真当成了AI!</span></p></section></section></section></section></section></section></section></ul>

本篇文章来源于: 菜鸟学Python

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

知行编程网
知行编程网 关注:1    粉丝:1
这个人很懒,什么都没写

发表评论

表情 格式 链接 私密 签到
扫一扫二维码分享