需要有关文件重命名的信息 [英] Need information regarding file renaming

查看:109
本文介绍了需要有关文件重命名的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



从过去几天我下载了很多开源软件,在那里我看到了一些不常见的扩展数据库。

请告诉我有没有任何标准的方法,或随机他们给予任何扩展.. ??



我们无法猜测,如果我们这样做,那么也我们无法打开文件。



这样做的过程是什么..即使我也打算在我的项目中做。



请你的建议..

解决方案

没有。从概念上讲,没有文件扩展名这样的东西。 (从你的问题来看,你的意思并不明显,所以我只是猜测。)从历史上看,旧文件系统和操作系统都有这样的概念,但后来它被弃用了,而且只有一个文件名,而不是细分为任何必需的部分。传统上,文件名的某些末尾部分用于表示文件类型。



在Windows中,某些此类扩展已注册告知Shell用于处理文件的默认程序。但是,命名模式可以是任何内容,需要注意携带任何重要信息。一般情况下,通过查看文件名,即使在Windows中也无法说出内部的内容(例如* .mpg,* .mp4:你可以猜到这是一种媒体类型,但你不能我几乎不知道它的格式;要找出来,你必须打开文件,尝试找到容器签名并通过这个签名对其进行分类)。



存储在SQL Server中的文件名也是如此。数据库完全与操作系统无关,而且更为明显的是,数据本身不知道内容的含义。



-SA

Hi all

From past few days i had downloaded many opensource software and there i saw there database with some uncommon extensions.
please tell me is there any standard method of doing that or randomly they are giving any extension..??

we can't guess and if we do so then also we are not able to open the file.

what is the process for doing such thing..even i am also planning to do in my project.

Please need your suggestions..

解决方案

No. Conceptually, there is no such thing as "file name extension". (From your question, it's not obvious that you mean exactly that though, so I'm just guessing.) Historically, old file systems and OS has such notion, but later on it was deprecated, and there is just a file name, not subdivided into any required parts. Still, traditionally, some end part of a file name is used to indicate the "file type".

In Windows, some of such "extensions" are registered to tell the Shell which default program it use to handle the file. However, the naming schema can be anything, it is note required to carry any significant information. In general case, by looking just at the file name, it's impossible to say what's inside, even in Windows (example is "*.mpg", "*.mp4": you can guess that this is a media type, but you don't know almost anything about its format; do find out, you have to open the file, try to locate the container signature and classify it by this signature)).

The same goes about file names stored in SQL Server. The database is totally OS-agnostic, and, even more obvious, the data itself "knows" nothing about the meaning of the content.

—SA


这篇关于需要有关文件重命名的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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