恢复文件名混乱的文件

发布于 2024-12-24 03:54:25 字数 203 浏览 2 评论 0原文

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

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

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

我正在使用 Windows。

I have a folder of files with scrambled file names. The file extensions are scrambled too. The folder contains a variety of different file formats. The files are not encrypted.

example: original file name = abcde.pdf
scrambled file name = !@#FDZ13

Is there a way to recover the original file names? If not, is there a way to differentiate the file formats (.pdf, .png, ...)? Ultimately, I wish to access and use these files again.

I am working with windows.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兮颜 2024-12-31 03:54:25

魏先生,原则上来说,这个案子很简单。

我假设您知道可能出现在那里的文件类型集。假设我们期望有 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.

Wei, in principle, the case is quite easy.

I assume you know the set of file types that can possibly appear there. Let's say we expect there to be DOC, PDF and PNG files.

Then I would go ahead and do the following:

- 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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文