文章目录
系统环境
项目 | 数值 |
---|---|
系统版本 | window10 |
位数 | 64位系统 |
磁盘格式 | NTFS |
windows file recovery 安装
安装非常简单,首先,打开windows应用商店,搜索软件“windows file recovery”,然后获取安装
运行软件
软件运行之后是命令行交互,如下图
语法简单介绍
【语法】
winfr source-drive: destination-drive: [/switches]
winfr [被删文件所在磁盘] [想把文件恢复到哪个盘] [/开关] 文件详细路径
** 不要忘记文件夹末尾的反斜杠(\)**
【示例1:已知被删文件的名称】
将C:\Users<username>\Documents\QuarterlyStatement.docx)恢复到E盘。
winfr C: E: /n \Users\<username>\Documents\QuarterlyStatement.docx
【示例2:文件名未知,但知道文件类型】
将JPEG和png照片从“图片”文件夹恢复到E:驱动器上的恢复文件夹。
winfr C: E: /n \Users\<username>\Pictures\*.JPEG /n \Users\<username>\Pictures\*.PNG
【示例3:恢复文件夹下所有文件】
从C:驱动器将Documents文件夹恢复到E:驱动器上的恢复文件夹。
winfr C: E: /n \Users\<username>\Documents\
实验
在E盘下创建文件夹,里面新建三个文件,如下图
将文件删除,并情况回收站
执行命令
举例1:按照文件名恢复:test1.pptx
C:\WINDOWS\system32>winfr E: D: /n \test\test1.pptx
根据命令行提示, Continue? (y/n) 输入y,表示继续执行
等待磁盘扫描:Pass 1: Scanning and processing disk
Scanning disk: 100%
等待文件恢复:Pass 2: Recovering files
举例2:按照文件类型恢复:
winfr E: D: /n \test\*.txt \test\*.xlsx \test\*.docx
段模式示例(/ r)
将PDF和Word文件从C:驱动器恢复到E:驱动器上的恢复文件夹。
winfr C: E: /r /n *.pdf /n *.docx
使用通配符恢复文件名中包含字符串“ invoice”的任何文件。
winfr C: E: /r /n *invoice*
运行结果如下:
C:\WINDOWS\system32>winfr E: D: /n \test\*test*
Windows File Recovery
Copyright (c) Microsoft Corporation. All rights reserved
Version: 0.0.11761.0
----------------------------------------------------------
Source drive: E:
Destination folder: D:\Recovery_20200707_140222
Filter: TEST\*TEST*
Extension filter: *
Sector count: 0x000000003a402421
Cluster size: 0x00001000
Sector size: 0x00000200
Overwrite: Prompt
Mode: Default
Continue? (y/n)
Pass 1: Scanning and processing disk
Scanning disk: 100%
Pass 2: Recovering files
Files recovered: 1, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jav\TEST1~1.JAV
Files recovered: 2, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\testRedisStep.jsp
Files recovered: 3, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\insertRedisTest.jsp
Files recovered: 4, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\updateStep.jsp
Files recovered: 5, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\testStep.jsp
Files recovered: 6, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\testCassandraStep.jsp
Files recovered: 7, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\insertSqlTest.jsp
Files recovered: 8, total files: 161, current filename: D:\Recovery_20200707_140222\Others\Misc\jsp\insertCassandraTest.jsp
File D:\Recovery_20200707_140222\Others\Misc\jav\TEST1~1.JAV exists: (o)verwrite, (s)kip, (a)lways overwrite, (n)ever overwrite, (k)eep both once, keep (b)oth always