My intention is to run a perl script
latexdiff.pl from a portable version of perl. There is a batch file
portableshell.bat which sets up the environment for perl. If I open it and type
perl latexdiff.pl additional_arguments, the program works nicely. However, I want to automate it. I created a batch file
useLatexdiff.bat and put the following into it:
portableshell.bat perl ..\MiKTeX\texmfs\install\scripts\latexdiff\latexdiff.pl
The perl environment is properly set up, but the second line is not executed. How can I achieve to execute the second line?
Note: It is a common question. Another use-case is to open a Unix shell and after that execute Unix commands from that shell.