Extension Edit
-
HeavyMetal
- Joined: Sat Jan 24, 2004 9:45 pm
Extension Edit
Okay this is probably a dumb question, but I'll ask anyway.
Okay I was wondering what the side effect of changing a file extension is?
Not something like AVI to MPG, but if I delete the vb off of an .rmvb file to make it .rm will this cause problems?
So far it has not. I'm not sure anything really plays .rmvb well, so that is why asked.
Okay I was wondering what the side effect of changing a file extension is?
Not something like AVI to MPG, but if I delete the vb off of an .rmvb file to make it .rm will this cause problems?
So far it has not. I'm not sure anything really plays .rmvb well, so that is why asked.
- Iamshadowkiller
- Joined: Fri Sep 14, 2001 11:40 pm
- Status: Pending
- Location: Your Mother
- Contact:
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
Yes, it will cause problems. There is absolutely NO logical reason to change a file extension to something different that what it is supposed to be. Many media players are smart enough to determine what type of file is by examining the file itself, rather than just looking at the extension, but not all players do this. Don't change your file extensions, ever.
- Iamshadowkiller
- Joined: Fri Sep 14, 2001 11:40 pm
- Status: Pending
- Location: Your Mother
- Contact:
-
trythil
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact:
Nonsense, they make it easier to remember just what filetype any given file has.trythil wrote:There's no real reason for file extensions, either...Zarxrax wrote:Yes, it will cause problems. There is absolutely NO logical reason to change a file extension to something different that what it is supposed to be.
And, you know, the whole thing about associating extensions with specific programs, which I thought was the whole reason they came up with file extensions in the first place.
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
Then I have a question for you. When you are working at the command line in your lunix... how do you know what type of file something is? I think file extensions are primarily for the user... it lets you know immediately what type of file something is. I mean... what if you just have this file called "stuff"? What the hell is it? Is it audio? Video? Text? File extensions serve the purpose of telling you what type of file it is.trythil wrote:There's no real reason for file extensions, either...
[paizuri: Fixed quote.]
- Kalium
- Sir Bugsalot
- Joined: Fri Oct 03, 2003 11:17 pm
- Location: Plymouth, Michigan
File extensions are an aniquated system of doing this. Now we use /etc/magic (I kid you not), which uses the first three (I think) characters of a file to determine type and associations.Zarxrax wrote:Then I have a question for you. When you are working at the command line in your lunix... how do you know what type of file something is? I think file extensions are primarily for the user... it lets you know immediately what type of file something is. I mean... what if you just have this file called "stuff"? What the hell is it? Is it audio? Video? Text? File extensions serve the purpose of telling you what type of file it is.
-
trythil
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????
It's more sophisticated than that, but the principle is the same. file(1) uses the magic file, and performs filesystem tests, magic number tests (magic numbers are defined in the magic file) and language analysis (in the case of text files, to differentiate between e.g. ASCII and UTF-8 English text).Kalium wrote: File extensions are an aniquated system of doing this. Now we use /etc/magic (I kid you not), which uses the first three (I think) characters of a file to determine type and associations.
file(1)Zarxrax wrote:trythil wrote:Then I have a question for you. When you are working at the command line in your lunix... how do you know what type of file something is? I think file extensions are primarily for the user... it lets you know immediately what type of file something is. I mean... what if you just have this file called "stuff"? What the hell is it? Is it audio? Video? Text? File extensions serve the purpose of telling you what type of file it is.Zarxrax wrote: There's no real reason for file extensions, either...
For example:
Code: Select all
trythil@nevrast /mnt/usb/video/amv/MultiEditor $ file DDR4
DDR4: RIFF (little-endian) data, AVI, 512 x 384, 29.97 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
Or, if I'm using a graphical interface, my desktop environment lets me know what the file type is. If I need to see inside it, my desktop environment gives me that capability with a single click. Finally, I can differentiate between various types of text files by their unique name, not by some cryptic extension.
Modern environments can determine that automatically. A good, long-standing example: Mac OS has been doing that for a decade or so.Scintilla wrote: Nonsense, they make it easier to remember just what filetype any given file has.
It was a scheme imposed by technical limitations that no longer exist. When you're limited to, say, 6-8 characters, you can't describe a file too well, so you need some extra data to identify it. That is no longer true. Modern filesystems don't even care about the "extension" field anymore.Scintilla wrote: And, you know, the whole thing about associating extensions with specific programs, which I thought was the whole reason they came up with file extensions in the first place.
This isn't to say I don't use file extensions every now and then. It's a nasty habit that's hard to break.
- Keeper of Hellfire
- Joined: Sun Jan 09, 2005 6:13 am
- Location: Germany
Windows still uses file extensions to associate programms with files. Because Windows runs on over 90% of all PC's, it's for the most people not a good idea to change extensions. There is one exeption of this: If a program denies to open a specific file because of the extension and you know a different extension for the same contents which will work for the progam.trythil wrote:It was a scheme imposed by technical limitations that no longer exist.Scintilla wrote: And, you know, the whole thing about associating extensions with specific programs, which I thought was the whole reason they came up with file extensions in the first place.


