Page 1 of 1

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

Posted: Tue Sep 25, 2007 3:34 pm
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.

Posted: Tue Sep 25, 2007 4:22 pm
by ben_josephs
Is
File | Open... | File format: Text
what you're looking for?

not quite

Posted: Tue Sep 25, 2007 5:48 pm
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.

Posted: Tue Sep 25, 2007 7:13 pm
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).