command line parameter to open file in ascii mode?

Ideas for new features

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

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

command line parameter to open file in ascii mode?

Post by sralpert »

I edit VMS command files on my PC. They have the extension .COM. I don't want to edit them as binary but as ascii text. There is no switch that will let me do this. I don't see any way to change the view after it is open either. Some option is desirable.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You can remove .COM from the list of file types that TextPad considers as binary files, as follows:
  1. Click Configure > Preferences.
  2. Click the plus sign next to Document Classes.
  3. Click Binary.
  4. Click *.COM.
  5. Click the red X.
Your VMS command files will then open in text mode.
sralpert
Posts: 6
Joined: Mon Apr 05, 2004 12:45 pm

Doesn't quite do it

Post by sralpert »

Your suggestion would force EVERY COM file to not be considered binary. That is overkill. When I want to look at a windows COM file, I'd have to change it back first. Maybe a command line parameter like:
... -x=txt
means treat like a .txt file!
Jim4Prez
Posts: 4
Joined: Thu Oct 18, 2012 3:24 pm
Location: USA

Post by Jim4Prez »

And a simple option under the View or Edit menu to switch between binary and text mode would make it much faster than closing the file, browsing to the file and changing the open mode.
Post Reply