Page 1 of 1
command line parameter to open file in ascii mode?
Posted: Mon Jul 30, 2012 11:17 am
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.
Posted: Mon Jul 30, 2012 11:49 am
by ak47wong
You can remove .COM from the list of file types that TextPad considers as binary files, as follows:
- Click Configure > Preferences.
- Click the plus sign next to Document Classes.
- Click Binary.
- Click *.COM.
- Click the red X.
Your VMS command files will then open in text mode.
Doesn't quite do it
Posted: Mon Jul 30, 2012 11:54 am
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!
Posted: Thu Oct 18, 2012 4:23 pm
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.