I've written a couple of batch scripts (Windows 10), one for PDF and one for JPG, with autosave enabled. After scanning the script opens the scanned document.
This is my PDF script (nircmd from Nirsoft required):
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" % && exit
SET SCANDIR=D:\Documents\Scanned
"C:\Program Files (x86)\NAPS2\NAPS2.console" -a -p "PDF"
start "Scanned" %SCANDIR%
pushd %SCANDIR%
for /f "eol=: delims=" %%F in ('dir %SCANDIR% /b /od .pdf') do @set "newest=%%F"
start "%newest%" "%newest%"
D:\Documents\nircmd win activate title "Scanned"
D:\Documents\nircmd win activate stitle "%newest%"
exit
For batch scans I had to make another profile without autosave and use the NAPS2 gui.
Thanks!
Last edit: Veli-Matti Niinioja 2018-01-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The comand line worksw great for a quick scan but it would be great if there was a switch to just bring up the scan another page dialogue. Any likelyhood.
Ather than that a great tool.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
NAPS2.exe "MyScan.PDF"
and
NAPS2.exe -i "MyScan.PDF"
didn't work.
I don't know how to use the Keys on my Canon Pixma MX925. The Driver that works with that keys make a PDF or a JPG or TIF and open a Programm after that, so I can't use NAPS2 with that keys from Scanner till better commandline support is give to the GUI of NAPS2.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
it would be nice to use command line interface for batch scanning, too. It would be easier to scan multi-page or duplex documents.
Thanks!
What feature(s) from batch scan do you want to be added to the CLI?
For batch scan at least:
I've written a couple of batch scripts (Windows 10), one for PDF and one for JPG, with autosave enabled. After scanning the script opens the scanned document.
This is my PDF script (nircmd from Nirsoft required):
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" % && exit
SET SCANDIR=D:\Documents\Scanned
"C:\Program Files (x86)\NAPS2\NAPS2.console" -a -p "PDF"
start "Scanned" %SCANDIR%
pushd %SCANDIR%
for /f "eol=: delims=" %%F in ('dir %SCANDIR% /b /od .pdf') do @set "newest=%%F"
start "%newest%" "%newest%"
D:\Documents\nircmd win activate title "Scanned"
D:\Documents\nircmd win activate stitle "%newest%"
exit
For batch scans I had to make another profile without autosave and use the NAPS2 gui.
Thanks!
Last edit: Veli-Matti Niinioja 2018-01-22
The comand line worksw great for a quick scan but it would be great if there was a switch to just bring up the scan another page dialogue. Any likelyhood.
Ather than that a great tool.
Anybody know how to open NAPS2 with a Document?
I don't know how to use the Keys on my Canon Pixma MX925. The Driver that works with that keys make a PDF or a JPG or TIF and open a Programm after that, so I can't use NAPS2 with that keys from Scanner till better commandline support is give to the GUI of NAPS2.