Default file type or file extension for new files

General and specific configuration/INI settings

Default file type or file extension for new files

Postby cjm2061 » Thu Jan 27, 2005 8:31 am

I would like to configure UE to always give the new files I create an extension of .txt.
Is this possible.
TIA
Chris
User avatar
cjm2061
Newbie
 
Posts: 2
Joined: Thu Jan 27, 2005 12:00 am

Re: Default file type or file extension for new files

Postby Mofi » Thu Jan 27, 2005 9:02 am

No and yes!

During "Save As" the created extension is defined by UltraEdit by the file type below the name field. If you select *.txt, it will be .txt. The current file type setting is always stored in the ini-file of UltraEdit. So if you select once .txt and never change it, .txt will be used always for new file.

You can modify the list of file types at Advanced - Configuration - File Types. Bring file type .txt to top of the list. Of course, if you delete all file types except *.txt, new files will be always saved as .txt. But this "solution" is not very good, because opening files with different file extension then cannot be done easily anymore with the standard open file dialog.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4069
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Default file type or file extension for new files

Postby cjm2061 » Thu Jan 27, 2005 10:11 am

That's exactly what I want.
Many thanks for replying so promptly.
Regards
Chris
User avatar
cjm2061
Newbie
 
Posts: 2
Joined: Thu Jan 27, 2005 12:00 am

Re: Default file type or file extension for new files

Postby pepto_gecko » Mon Dec 04, 2006 8:52 pm

I'm using UE 12.20a+4 and am unable to make .txt my default. I've tried the posted suggestion of moving .txt up in the extension list but my new files always default to the second entry of *.*. Any advice would be appreciated.
User avatar
pepto_gecko
Newbie
 
Posts: 2
Joined: Mon Mar 07, 2005 12:00 am

Re: Default file type or file extension for new files

Postby Mofi » Tue Dec 05, 2006 12:45 pm

I tested again what I have written with UE v12.20a+4 and the Save As dialog still uses by default the last used file extension. UltraEdit saves the last used file extension in uedit32.ini with

[Settings]
Save Filter=3

Value 3 means 3rd entry in the drop down list. In your case after moving up *.txt to top of the file extensions list this setting should have the value 1.

It's important for changing the file extension (= this setting) that you first select it from the extension list and then enter the file name WITHOUT dot and extension (name only) and then save the new file. Next time the default in the extensions list should be the extension you used before.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4069
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Default file type or file extension for new files

Postby pepto_gecko » Tue Dec 05, 2006 2:59 pm

Thanks, Mofi. Somehow my .ini file got corrupted. After uninstall/reinstall it's working perfectly.
User avatar
pepto_gecko
Newbie
 
Posts: 2
Joined: Mon Mar 07, 2005 12:00 am


Return to Configuration/INI Settings