使用加扰文件名恢复文件

时间:2012-01-04 08:37:13

标签: filenames recovery recover

我有一个带有乱码文件名的文件夹。文件扩展名也是乱码。该文件夹包含各种不同的文件格式。文件未加密。

示例:原始文件名= abcde.pdf          加扰文件名=!@#FDZ13

有没有办法恢复原始文件名?如果没有,有没有办法区分文件格式(.pdf,.png,...)?最后,我希望再次访问和使用这些文件。

我正在使用Windows。

1 个答案:

答案 0 :(得分:0)

魏,原则上,这个案子很容易。

我假设您知道那里可能出现的文件类型集。假设我们期望有DOC,PDF和PNG文件。

然后我会继续做以下事情:

- create a subdirectory for every file type you expect
- for each file f
-    for each file type t
-        move f under a nice name with appropriate file extension
         to the subdirectory for file type t
-        try to open the file with the correct application for t
-        continue with next file if it works
-        otherwise continue with next file type
- at this point the directory should contain no files anymore
- move all files from the subdirectories back to this one
- remove the subdirectory.
相关问题