Printing PDFs from Windows Command Line

后端 未结 11 499
我寻月下人不归
我寻月下人不归 2020-11-30 01:06

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

11条回答
  •  渐次进展
    2020-11-30 01:50

    @ECHO off set "dir1=C:\TicketDownload" 
    FOR %%X in ("%dir1%*.pdf") DO ( "C:\Program Files (x86)\Adobe\Reader 9.0\Reader\AcroRd32.exe" /t "%%~dpnX.pdf" "Microsoft XPS Document Writer" ) 
    FOR %%X in ("%dir1%*.pdf") DO (move "%%~dpnX.pdf" p/)
    

    Try this..May be u have some other version of Reader so that is the problem..

提交回复
热议问题