Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
@echo off REM Define paths and settings for script set DOCFullPath=\\nyenad03fs002\share\Replenishment\DAILY set Acrobat=C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe REM Build time stamp to add to end of the files processed (YYYYMMDD_HHMMSS) set Stamp=%DATE:~-4%%DATE:~-10,2%%DATE:~-7,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% REM Process all files within the folder that have not already been processed for /F "tokens=*" %%A in ('dir /a-d /b "%DOCFullPath%\*.pdf" ^| find /i /v "_PRINTED_"') do ( REM Print document "%Acrobat%" /n /s /o /h /t "%DOCFullPath%\%%A" "%Printer%" "RICOH Aficio MP 3500 PCL 6" "NPSO01B4PRMFDCOL" REM Rename file to indicate processed ren "%DOCFullPath%\%%A" "%%~nA_PRINTED_%Stamp%.pdf" REM End the PDF print program (doesn't close on its own after printing) taskkill /IM AcroRd32.exe ) EXIT
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.