M
ms
A small program to convert WordPerfect 5.1 files to plain text files?
Mike Sa
Mike Sa
ms wrote in said:A small program to convert WordPerfect 5.1 files to plain text files?
Bjorn said:have a look at <http://www.empowermentzone.com/batcon10.zip>
a collection of DOS batch files and utilities to convert from many
formats to text, wp included. From <http://www.empowermentzone.com/>.
All the best,
Bjorn Simonsen
Melinda said:You do know you can do it one at a time inside WP51 via Ctrl-F5,T,S,
right? Just thought I would let you know in case you didn't.
WP51's help file is the greatest in the world -- F3, then type the first
letter of what you want to do.
ms said:In batcon, the help file had a good example commandline, I ran it but
no luck. In the folder is View.exe, it opens a WP file and the DOS
screen displays *plain text*- great! By paste/copy in the DOS screen,
I could copy the text to a *.txt file. I can't convert the entire
file, but can do the job one page at a time. I will contact the
author on that website about using batcon.
to the commandline.mytext.txt
A DOS question for someone:
In a DOS screen(W98), how to "select all" when blocking text so I can
copy the entire file at the same time? I only see "paste" for one
page at a time.
Melinda said:You do know you can do it one at a time inside WP51 via Ctrl-F5,T,S,
right? Just thought I would let you know in case you didn't.
WP51's help file is the greatest in the world -- F3, then type the first
letter of what you want to do.
Alan said:If it's a commandline you're using, maybe try to redirect the output to
a file instead of the screen, by appending a
to the commandline.
I don't think it can be done by "simple" means. There are utilities that
will "capture" the screen to a file for the duration of a DOS session.
Another approach I remember is to use a utility like
Fork 3.3 - A DOS utility which allows you to redirect standard output to
multiple devices
http://www.filelibrary.com:8080/cgi-bin/freedownload/DOS/h/54/fork33.zip
4428bytes
ms wrote in said:In batcon, the help file had a good example commandline, I ran it but no
luck.
ms said:Melinda, that works fine, and thanks. Actually, in 5.1, CTRL/F5 gets me
to a screen, then 1 (DOS text), next screen 1 (save), enter file name to
save with .txt extension, and it results in a plain text file.
A DOS question for someone:
In a DOS screen(W98), how to "select all" when blocking text so I can
copy the entire file at the same time? I only see "paste" for one page
at a time.
Bjorn said:I've just tried it in a DOS BOX on a WIn9x system, converting a WP5.1
file - and it worked just fine. Unfortunately I also noticed that the
VIEW program found in the batcon archive and used to convert WP files
is shareware. Sorry, did not check this before I suggested batcon. Not
often I see request for Wp51 conversion nowadays - been years since
I've needed it my self...But since I already got you to download it -
and you can not make it work, let me try help you out here. (If you
need more help - email me).
Notice that when you run the batch file from the commandline, say
WPD2TXT.BAT, you should only input the basename of the input file. The
extensions is already given and assumed in the bat (given as %1.wpd
inside the bat file). Thus it assumes your file to be converted have
the *.WPD extension. If not - and you want to use the batch file - you
will have to rename the file to be converted to *.wpd (but still you
should only input basename when you invoke the bat) - or edit the bat
file to suite your needs. Else, see inside the bat file (open in
Notepad or any plain text editor) and you can see the syntax it use to
call the VIEW program for conversion. Try the program directly from
the commandline your self - and make sure you input short filenames
(8+3, not LFN - this is a DOS app). Say if you keep all the files
(files to be converted and the VIEW program) in the same directory,
open a dos box, cd to that directory and try a command like:
VIEW NAME.WPD /CNAME.TXT
Where NAME.WPD is the name of the file to be converted, NAME.TXT the
output file. The converted text should then be written to the output
file NAME.TXT in the same directory.
All the best,
Bjorn Simonsen