Page 1 of 1

Open .com scripts as text by default rather than binary

Posted: Mon May 15, 2006 7:18 pm
by asbury
I have UNIX shell scripts with .com extension. When I double-click through Windows Explorer and open with TextPad, the file opens in Binary code rather than text so that I see all the Hexadecimal code and I don't have the option to edit or save the file. If I do File-->Open--> and change file format to 'Text' rather than 'Auto', the files open in text, but I want the option to open through Explorer.

My question is--how do I setup TextPad to open .com scripts in Text by default?

Posted: Mon May 15, 2006 8:00 pm
by ben_josephs
In Configure | Preferences | Document Classes | Binary remove *.COM from the list of extensions, and add it in Configure | Preferences | Document Classes | Text.

But why are you giving your unix shell script files any extension at all...?

Posted: Tue May 16, 2006 6:02 pm
by hillsc
I don't know if he's actually giving it that name. I have this exact same problem when my web host provider gives me my raw apache logs. They're named (out of my control) error_log-domain-name.com.

I just removed it from the list of Binary files. (I didn't add it to Text.)