Discussion:
[Latex2rtf-users] cannot run command line in windows 10
Jay A. Leavitt, PhD
2016-11-07 16:37:21 UTC
Permalink
rtf2latex2e is installed in folder in Program Files (x86). When cmd
run in that directory getting this error.
Wilfried Hennings
2016-11-07 20:16:02 UTC
Permalink
rtf2latex2e is installed in folder in Program Files (x86). When cmd
run in that directory getting this error.
Cannot find the rtf2latex2e support file 'rtf-encoding.cp1250'
The default install location for these files is
/usr/local/share/rtf2latex2e/
When this program was compiled the location was
C:/PROGRA~1/rtf2latex2e/pref
After locating the proper directory you can
(1) define the environment variable $RTFPATH, *or*
(2) use command line path option '-P /path/to/prefs' *or*
(3) recompile rtf2latex2e (after modifying datadir in Makefile)
Giving up. Please don't hate me.
The compiled-in path is "C:/PROGRA~1/rtf2latex2e/pref" which would be OK
for Windows 32 bit, but you seem to have Windows 64 bit.

So you need to specify the path where the support files are, either by
defining the environment variable with the command:

SET RTFPATH="C:/Program Files (x86)/rtf2latex2e/pref"

or by specifying it in the call:

rtf2latex2e -P "C:/Program Files (x86)/rtf2latex2e/pref" conv.rtf

But you should not normally run programs in admin mode.
Put the file to be converted in a user data folder, then call the
program like this:

"C:/Program Files (x86)/rtf2latex2e/rtf2latex2e" -P "C:/Program Files
(x86)/rtf2latex2e/pref" conv.rtf

One problem is that the path contains blanks. When the path contains no
blanks, the quotes can be omitted. Maybe the following would be better:

C:/PROGRA~2/rtf2latex2e/rtf2latex2e -P C:/PROGRA~2/rtf2latex2e/pref conv.rtf

Hope this helps
Wilfried

Continue reading on narkive:
Loading...