I can see there are a lot of questions for getting the number of pages in a a pdf with C, PHP and others but am wondering with a batch file or cmd is there a simple way of getti
Because you asked for a "batch file" I have to assume you only want a Windows-based solution. But, just in case Mac OS X is an option, here something that could be useful. If you have the PDFs on a Mac, on a drive that has been indexed by Spotlight (the default), the following command will return the number of pages using no external dependencies:
mdls -name kMDItemNumberOfPages POSIX_PATH_OF_PDF_FILE
Source: MacScripter.net - http://macscripter.net/viewtopic.php?id=32381