Wednesday, April 6, 2011

Renaming a File

Renaming a file is a fairly simple process in Windows; however, there are a number of ways you can go about it, along with some nifty tricks and even a few hiccups.
Method #1 – Right Click Rename
One of the easiest ways to rename a file is to simply right click on the file you want to rename and click Rename (you can also access these options from the file menu).  Give the file the name you desire and just left click in an empty place or press Enter on the keyboard.
right click to rename file
file-menu-rename-for-renaming-file
Method #2 – Keyboard Shortcut F2
For this method, simply select the file and press F2 on the keyboard. Give the file the name you desire and left click in an empty place or press Enter on the keyboard.
F2 to rename file
Changing File Types
In both the screen shots above, I have the Windows Folder settings set to hide the file extensions, this prevents accidentally renaming or messing with the extension.  However, it is possible to change file types by changing the extension.  In the screen shots above, that is actually what the main.txt file is; simply a main.css file renamed to main.txt.  This works because both the CSS file and TXT file formats are the same – plain text.  With the screen shot below, I have changed Windows Folder settings to show extensions and have changed the TXT format to HTML and Windows alerts that this may not work.  Contrary to what Windows said this will actually work.  One needs to be careful when changing extensions; for example, changing a JPEG file to a PNG file is not possible by simply be renaming the extension (JPEG and PNG are different formats).  Windows will alert you if you try to change or modify a file extension.  If you wish to change the extension simply click Yes.
rename a file extension
changing a file extension warning

No comments:

Post a Comment