May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.
@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.
|hosts.ini- can it be made to block all websites?||14||85|
|Get a list of users on network who have folders open||25||60|
|Delete out x file types from multiple network directories using batch script||8||93|
|Recursively Delete Files||5||110|
Join the community of 500,000 technology professionals and ask your questions.