Purl Gurl <> writes:
>> perl c:/your/path/to/html2latex myfile.html
>
>> When you call an executable outside your current
>> working directory, you must provide a full path
>> or issue a "change directory" command to the
>> directory containing your executable.
>
> Expanding on this, if your to use your latex program
> frequently, you can modify your Win98 autoexec.bat
> to automatically include a path which can be used in
> any directory, you only need to issue,
>
> html2latex
>
> for any given directory when a parent path is set in
> your environment variables through an autoexec.bat file.
Thanks for answering. Now, this is exactly what I tried before. I
saved html2latex in a directory that is in the PATH set in my
autoexec.bat. This works with exe and bat files, as you wrote, but it
does not work with a Perl script here:
D:\Dateien\temp>perl html2latex.pl myfile.htm
Can't open perl script "html2latex.pl": No such file or directory
Renaming the script to exe/ bat, as you suggested, does not work
either.
Only using full paths both to html2latex as well as to the HTML file
to convert has solved the problem. Thanks for your advice!
However, the question remains why does Perl on Windows not find the
script in my PATH?
html2latex contains a readme file for use on MS Windows suggesting
this should be the case:
You can put html2latex anywhere you want. Putting in your path makes
command-line usage very easy, however.
Thanks!
Juergen.