Renaming Files

Question: How can I rename a dat file into an exe file?

Answer:How you rename a file depends on the operating system you are using.

Note that renaming a file to give it a .exe file type will not by itself make the file into a program that can be run. It will only be able to run if it is already in the appropriate format to run as a program. The easiest way to tell if this is the case is to view the source of the file in a plain text editor where an actual executable program file will have 'MZ' as the first two characters in the file with most of the rest being unreadable when viewed as plain text.

If the file does not contain an executable program then you will need to determine exactly what type of file that it really is and rename it to have the correct file type to match its content. Renaming files to change their file type will give a warning on those operating systems that rely on the file type to determine what to try to do with the file because giving a file an inappropriate file type will make the file unusable on these operating systems until such time as you rename it back to the correct file type.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow