I have a script that counts the number of pages in a PDF unfortunantly it's limited to whatever folder you place it in. I was wonder what I would need to add in order to give the user the ability to select what directory to go to, Is this even possible.
I know how to prompt a user for input just unsure of how to properly implement it here...
Code Sample:
@echo off
set total=0
for %%a in (*.pdf) do (
title %%a
for /f "tokens=2 delims=: " %%b in ('pdftk "%%a" dump_data ^| find "NumberOfPages"') do (
set /a total+=%%b
)
)
echo %total%
pause