running a batch file from oracle forms 6i using host

Posted by user176217 on Stack Overflow See other posts from Stack Overflow or by user176217
Published on 2009-09-30T21:39:38Z Indexed on 2010/06/16 5:22 UTC
Read the original article Hit count: 250

Filed under:
|
|

I am trying to run a batch file. the file is located here:

C:\Program Files\Java\jre6\bin\getfile.bat

I use this in oracle forms 6i: first i assign this path to a variable:

tmp_msg := 'C:\Program Files\Java\jre6\bin\getfile.bat'

then I use the host command:

host( 'cmd /c' || tmp_msg, no_screen);

This is exactly as I have it. It doesn't give me an error, but I don't get the result that I'm expecting. I'm actually executing java code in the batch file like so: java -classpath path;addedpackage.jar myClass

I hope someone can help me with this. Thank you.

© Stack Overflow or respective owner

Related posts about Oracle

Related posts about forms