Windows 7 error message when launching 3rd-party app from Winbatch

Started by James McRae, November 02, 2017, 10:01:58 AM

Previous topic - Next topic

James McRae

We have a Winbatch program which launches a 3rd-party app called PDFTK.  The error message is attached.

How the Winbatch is being used:

- It is called from an Oracle-based form.
- Error does not appear in our current Oracle environment (version 11g, Windows IE, Java 7)
- Error appears intermittently in our new Oracle environment (version 12, Java 7... we are trying to use Oracle's new FSAL feature, which eliminates Windows IE).

Version release #'s:  Winbatch compiler is 2017B.

Here is the Winbatch command we are using to launch a .bat file which contains the PDFTK command and its required parameters:

  RunIconWait("cmd","/c %pp_win7Bin%\pdfSecurity\run4_pdftk.bat

       ( 'pp_win7bin' is the file-path variable to the pdfSecurity shared folder)

Here is the .bat file:

@echo off
@echo Working...             
@echo P1 - bin folder:  %1   
@echo P2 - Pdf in:      %2   
@echo P3 - 'output'     %3   
@echo P4 - Pdf out:     %4   
@echo P5 - 'owner_pw'   %5   
@echo P6 - owner_pw     xx   
@rem need to switch to the U: drive for this to work
u:
@rem cd to the folder where we (executables) are.
@cd    %1
@rem Run the security
@rem pdftk.exe         'output'         'owner_pw'       'allow printing'
@rem pdftk.exe  in.pdf  output  out.pdf  owner_pw   foo   allow printing
@pdftk.exe %2 %3 %4 %5 %6  allow printing 
@echo End.                                 
@rem END OF FILE

td

All WinBatch is doing is starting a command shell instance using standard Win32 process functions so you may have more luck checking with the the authors of your third party application or Oracle.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade