Click here to Skip to main content
15,894,362 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
How should i save one extention to another?
ie .doc to .xls
Posted
Updated 15-Aug-11 18:13pm
v2
Comments
Suresh Suthar 12-Aug-11 5:52am    
Give some detail.

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Aug-11 1:57am    
Griff, I voted 5, but just one 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. Please see my answer.
--SA
OriginalGriff 14-Aug-11 3:50am    
True, but the OS treats any data after the last dot as a file type (if it were a file extension), so it amounts to the same thing in the end.
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900