我应如何将一种扩展保存为另一种? [英] How should i save one extention to another?

查看:72
本文介绍了我应如何将一种扩展保存为另一种?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该如何将一个扩展保存到另一个扩展?
例如,将.doc转换为.xls

How should i save one extention to another?
ie .doc to .xls

推荐答案

您不能仅将具有一个扩展名的文件另存为具有另一个扩展名的文件,并期望它能正常工作.例如,如果您有一个名为"mydoc.doc"的Microsoft Word文档,并将其另存为"mydoc.jpg"或"mydoc.xls",则它将无法作为图像或excel文件读取. br/>
如果您要这样做,则必须找到或编写一个适当的文件转换器.
You can''t just save a file with one extension as a file with another extension and expect it to work. For example, if you have a Microsoft Word document called "mydoc.doc" and you save it as "mydoc.jpg", or "mydoc.xls" then it is not going to be readable as an image or a excel file.

If that is what you want to do, you have to find or write an appropriate file converter.


重要说明:文件扩展名是FAT文件系统中文件的属性;它是FAT文件系统中文件的属性. NTFS上没有扩展名,但确实存在模仿扩展名的文件命名架构;用于表示Shell使用的文件类型".在所有现代文件系统中,文件可以包含(几乎)任意数量的''.''字符,然后可以包含或不包含字符,等等.

在同一类型中,文件内部没有可靠的文件类型签名;任何文件都可以包含任何内容.实践表明,所有这些事情并不是太重要.

这个问题的表达方式不正确.可能意味着转换文件类型.如果是这样,则该问题缺少某些笼统的主题.

—SA
Important note: file extension is the attribute a file in FAT file system; there are no extensions on NTFS, but the file naming schema mimicking extensions does exist; used to denote "file types" used by Shell. In all modern file systems a file can contain (almost) any number of ''.'' characters, followed by characters or not, etc.

At the same type, there are not reliable file type signature inside files; any file can contain anything. Practice shows that all that matter is not too much important.

The question is not formulated correctly. Probably it means converting file type. If so, the question lacks certain subject as too general.

—SA


这篇关于我应如何将一种扩展保存为另一种?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆