Log in

View Full Version here: : changing ini file


allan gould
15-01-2013, 02:33 PM
A stupid question..... How can I change an ini file without changing the file extension?
When I do it in notepad it comes out as XXX.ini.txt and of course is not seen as the ini file.
Help?

pluto
15-01-2013, 02:40 PM
Just select it, press F2, and rename it "*.ini".
Windows will ask if you're sure you want to change the file type, say yes.

allan gould
15-01-2013, 02:42 PM
Many thanks Hugh as this has bugged me for ages

pmrid
15-01-2013, 03:56 PM
First change the name of the original file to xxx.old;
THEN and only then, copy it and rename it xxx.ini;
THEN edit it as you want; and
Finally save it as xxx.ini

If you stuff up, you can always delete your attempt and then rename the xxx.old back to xxx.ini.

Peter

2stroke
15-01-2013, 04:17 PM
When you open with notepad and edit and go to save just click "all files" in "save file as type" pulldown, its the simple why piss about changing extensions ect is beyond me lol.

Barrykgerdes
20-01-2013, 10:32 AM
Notepad and wordpad will both read *.ini files or in fact any ASCII formated file. I also have many ASCII files with *.dat and other private extensions.

For editing purposes I find wordpad better as it inserts a carriage return and linefeed to text files generated by linux editors and similar that use another non printable character to indicate the line feed/CR (eg. </b>).

I open "tools" on the menu bar and select "folder options", "file types".
I then find the .ini, .dat, .txt and any other extensions I like to edit in wordpad and set the "open with" to wordpad.

Thereafter whenever I click on these file formats they open in wordpad and save correctly without any bother with extensions.

Barry

PS With windows 7 this file association needs to be done through the control panel.

mithrandir
20-01-2013, 10:54 AM
Trade in Notepad and Wordpad on Notepad++. It makes none of M$'s stupid assumptions as to what you want to name files.