Forum Romania Inedit
Romania Inedit - Resursa ta de Fun
Lista Forumurilor Pe Tematici
Forum Romania Inedit | Reguli | Inregistrare | Login

POZE FORUM ROMANIA INEDIT

Nu sunteti logat.
Nou pe simpatie:
sanda_21 Profile
Femeie
21 ani
Alba
cauta Barbat
23 - 57 ani
Forum Romania Inedit / Totul despre cărți - About e-books / scanarea cu NAPS2 utilizand fisier de comenzi .bat Moderat de Seven, Stelevadris, cuculean, naid, uncris
Autor
Mesaj Pagini: 1
hrovidiu
Membru Junior

Inregistrat: acum 16 ani
pe cine'ntere'...
stiu ca sunt scannere full-duplex ce automatizeaza scanarea direct in .pdf a unor tomuri de hartii...

pentru cazurile de scanare 'manuela' cu intors de pagini,
mi-am creat un fisier .bat bazat pe aplicatia gratuita de scanare NAPS2
(cine vrea o mai poate personaliza sa scaneze in .pdf sau alte minunatii...)

ex.
>scan cvp_ 7 13
va scana pagina cu pagina (asteptand confirmarea ca poate continua cu urmatoarea)
si va crea o suita de 13 fisiere numite incepand de la "cvp_7.jpg" pana la "cvp_20.jpg"

e util daca se scaneaza in calupuri de tz pagini dupa care, dupa o pauza, se continua scanarea cu urmatoarea pagina

NAPS2 (Not Another PDF Scanner 2)

Command Line Usage

to scan into imagefiles named: rootname[countfrom].JPG ... rootname[countfrom+countnumber].JPG
scan param1 param2 param3
param1 - rootname
param2 - countfrom
param3 - countnumber

it wait to press ENTER | SPACE after each scan
(so after you turn page in scanner tap ENTER)
Don't forget to set the path of app NAPS2.Console.exe !!!
Outupt files will be in same dir with .bat file

Output example:
d:\myData\@Inbox\@cvp>scan cvp_ 7 13
Scan from : 7 to 20 ...
Scan to file: cvp_7.jpg
Beginning scan...
Starting scan 1 of 1...
Scanned page 1.
1 page(s) scanned.
Exporting...
Exporting image 1 of 1...
Finished saving images to d:\myData\@Inbox\@cvp\cvp_7.jpg

Scan to file: cvp_8.jpg
Beginning scan...
Starting scan 1 of 1...
Scanned page 1.
1 page(s) scanned.
Exporting...
Exporting image 1 of 1...
Finished saving images to d:\myData\@Inbox\@cvp\cvp_8.jpg
[...]
Scan to file: cvp_20.jpg
Beginning scan...
Starting scan 1 of 1...
Scanned page 1.
1 page(s) scanned.
Exporting...
Exporting image 1 of 1...
Finished saving images to d:\myData\@Inbox\@cvp\cvp_20.jpg

continut fisier scan.bat:

>>
@echo off
SETLOCAL EnableDelayedExpansion
rem rootname_countfrom.JPG ... rootname_(countfrom+countnumber).JPG: param1 - rootname; param2 -countfrom; param3-countnumber

set /A Counter=%2%
set /A MaxCount= %Counter% + %3%

echo Scan from : %Counter% to %MaxCount% ...

:LOOP

if %Counter% gtr %MaxCount% goto :END

rem echo Counter is: %Counter%
SET FileName=%1%!Counter!.jpg
echo Scan to file: !FileName!
d:\myData\Portable\Portable.NASP2\App\NAPS2.Console.exe -v -w -o ".\!FileName!"

set /A Counter+=1

goto LOOP

:END

<<


pus acum 5 ani
   
Pagini: 1  

Mergi la