Hi there, I hope you can help me?
I would like to create a Windows task scheduler that monitors a folder and converts the tif file received there into a PDF file with OCR. Finally, the tif file should be deleted
The following cmd command works.
cd "C:\Program Files (x86)\NAPS2\" & naps2.console.exe -i "C:\Test\Test.tif" -n 0 -v -o "C:\Test\Test.pdf" - -ocrlang "deu"
How do I get this one powershell script in? Of course, it would be best if the file name of the pdf file was the same as that of the tif file.
I would be very grateful for any help. Greetings daniel
I think the most efficient way of doing this is by putting a .bat script on the same folder and running it when you put files inside the folder. but if you need to monitor folders, then i would reccomend that you use this method: https://superuser.com/questions/226828/how-to-monitor-a-folder-and-trigger-a-command-line-action-when-a-file-is-created, just change the commands there to your script. Hope this helps!
Log in to post a comment.
Hi there,
I hope you can help me?
I would like to create a Windows task scheduler that monitors a folder and converts the tif file received there into a PDF file with OCR. Finally, the tif file should be deleted
The following cmd command works.
cd "C:\Program Files (x86)\NAPS2\" & naps2.console.exe -i "C:\Test\Test.tif" -n 0 -v -o "C:\Test\Test.pdf" - -ocrlang "deu"
How do I get this one powershell script in?
Of course, it would be best if the file name of the pdf file was the same as that of the tif file.
I would be very grateful for any help.
Greetings daniel
I think the most efficient way of doing this is by putting a .bat script on the same folder and running it when you put files inside the folder.
but if you need to monitor folders, then i would reccomend that you use this method: https://superuser.com/questions/226828/how-to-monitor-a-folder-and-trigger-a-command-line-action-when-a-file-is-created, just change the commands there to your script.
Hope this helps!
Last edit: Jackson José Gomes do Valle 2022-02-10