Open a file in plain mode with a command-line switch

Ideas for new features

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

Post Reply
sralpert
Posts: 6
Joined: Mon Apr 05, 2004 12:45 pm

Open a file in plain mode with a command-line switch

Post by sralpert »

I have to edit VMS files (what's that you say?) and I'd like to use my PC. One of the file types is a command file (BAT) but its extension is COM. If I try to open it, it is shown in hex dump mode.

How about adding a command line switch that says this file is ASCII and to treat it that way? I'm at a loss right now as to the appropriate "letter", maybe Z?
textpad -z mycommand.com
would treat the file as a regular ascii file.

Alternatively, is there a menu option to go to regular view? I don't want to define a special file type for the obvious reason.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Is
File | Open... | File format: Text
what you're looking for?
sralpert
Posts: 6
Joined: Mon Apr 05, 2004 12:45 pm

not quite

Post by sralpert »

That requires that I open TextPad and then use file->open

I actually have a batch file (tp.bat) that has the line

start c:\progra~1\textpa~1\textpad.exe %*

Hence, at the command line, I'd like to:
tp -z icw.com

I use command line extensively.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

So do I. You asked for a menu option.

I would remove *.COM from the Binary document class. You wouldn't normally open a binary .com file in a text editor anyway (and you'll be lucky to find a Windows .com file these days).
Post Reply