After an apparently mandatory Windows update screwed up my PATH variables and Controlled Folder Access, I took great pains to reconfigure (and even reinstall) MikTeX 2.9 so that the usual routines such as latex and pdflatex are finally working properly again. But when I try to use latexdiff in Command Prompt with admin privileges, e.g.,
D:\Documents\manuscript>latexdiff.pl draft1.tex draft2.tex > draft2_diff.tex
The following error message shows up:
The system cannot find the file specified.
Now, if I manually create the file draft2_diff.tex
in that same folder, i.e., D:\Documents\manuscript
, latexdiff does run, but does not write into or change in any way the file draft2_diff.tex
.
I have tried many things and it still didn't work. I've made sure that
C:\Program Files\MiKTeX 2.9\miktex\bin\x64
C:\Program Files\MiKTeX 2.9\scripts\latexdiff\perl
are already in my system PATH (in fact I followed this to copy the latexdiff scripts into the subfolder perl
, and added the file extensions *.pl
). I also went to Windows Security Center > Allow an app through Controlled Folder Access to add all the major MikTeX and latexdiff routines into the white list (which was part of what screwed up my TeXMaker and latex compilation before I managed to fix it). I'm running out of clues so I'm here to ask.