Set the extension for this filename. For example if this filename contained the filename c:\windows\fred.txt and the new extension was bak then this filename would contain c:\windows\fred.bak.