Miscellaneous > The Lounge
A question for makeing CD's for windows
slave:
quote:Originally posted by flap:
Files under windows don't have to have extensions.
--- End quote ---
Well, they do if you want your Windows apps to recognize the format. Now, take a file in Linux (say a *.png or an *.avi file) and remove the extension. It still knows what type of file it is. I'm not sure how it knows but it does. Can anyone tell me how it knows?
voidmain:
Yes, it's magic, literally. Do a "man magic", it uses file content rather then extention to determine a file type (much more reliable and makes 1000 times more sense). For instance type "file somefile" and it will let you know what it is. You can look through the /usr/share/magic file if you want to see what it looks for in a file to determine the type.
[ November 02, 2002: Message edited by: void main ]
Kintaro:
Yea actually file extensions are a good thing but a file extension for an executable or script is Windows's biggest flaw! WTF is with .exe .com .bat .cmd .vb and all teh other crap!
I mean think about this, a file with a +x (executable) type and a #!/path/to/scrpt/executor would make much more sence now wouldnt it!
Just another reason why Windows sucks
Calum:
told you so! :D
Navigation
[0] Message Index
[*] Previous page
Go to full version