Open .com scripts as text by default rather than binary

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
asbury
Posts: 2
Joined: Wed May 26, 2004 5:49 pm

Open .com scripts as text by default rather than binary

Post 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?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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...?
hillsc
Posts: 35
Joined: Thu Jun 19, 2003 2:00 pm

Post 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.)
Post Reply