In the beginning i was just running the batch file on my PC, and i added the to applications path to my environment variables PATH.
Now i try to run the same batch on a shared folder, and i added to extra variables for the location of the application.
I put those application just in a folder.
Even this code does not work anymore?
Code: Select all
@echo off
cls
Color 0E
Title PDF Merging Batch
:: Any Changes Happen Here >>
set "app_jpdf=S:\Production\Temp\Applications\jpdfbookmarks"
set "app_pdftk=S:\Production\Temp\Applications\pdftk\bin"
set "folder=S:\Production\Temp\Basic reports"
set "bookmark=S:\Production\Temp\Bookmarks"
set "bk_list=fullbookmarks.txt"
set "file_1=Report 1.pdf"
set "file_2=Report 2.pdf"
set "file_3=Report 3.pdf"
::Bookmarks maken van de pdf bestanden >>
%app_jpdf%\jpdfbookmarks_cli.exe --dump "%folder%\%file_1%" > "%bookmark%\bookmarks1.txt"
%app_jpdf%\jpdfbookmarks_cli.exe --dump "%folder%\%file_2%" > "%bookmark%\bookmarks2.txt"
%app_jpdf%\jpdfbookmarks_cli.exe --dump "%folder%\%file_3%" > "%bookmark%\bookmarks3.txt"
pause
I am getting the following errro message:
18 juli 2012 8:28:06 java.util.prefs.Windows.preference <init>
WARNING:Could not open/create prefs root node Software\javasoft\prefs at root 0x8000002. Windows RegCreateKeyEx <..>
returned error code 5.