I suspect that if you print your $cmd you'll see why:
cd C:\\ABC\\pdftotext -layout R1.pdf
Probably is not what you want to execute.
Perl has a builtin to change directory: chdir
In the command line, two commands have to been concatenated with & or && (NB: the latter && only execute the second command if the previous was succesfull ms odcs)
See a more userfriendly explaination at ss64.com for details.
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
|