I'm trying to print all pdfs in current dir.
When I call this bash script in cmd (singlepdf.sh
):
'"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe"' /t Gemeinde_348_BioID_842_alt.pdf
everything's working fine.
When calling multiplepdfs.sh
with this content:
declare -a pdfs=(*.pdf)
for pdf in ${pdfs[@]}; do
echo -e "\nprinting **$pdf** with AcroRd32.exe...\n"
'"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe"' /t $pdf
sleep 3
done
The echo shows that files are addressed correctly in the loop - but then I get the error "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe": No such file or directory
Can someone help out with this issue?
Edit: BTW, I have msys mingw installed