Results 1 to 10 of 10
  1. #1
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Thumbs up How to Run a .exe in background???

    I have seen in my previous company that Omnipage (OCR Engine) supports its .exe should take parameters and gives the output from comman line.At that time the configuration was done by some other guy..he wrote code like this

    // Step 4: OCR each image file and generate a text file
    def recType = 'OCR'
    def omrResult = ''
    if (recType == 'OMR') {
    ant.exec(executable:'cmd.exe',outputproperty : omrResult)

    {
    arg(line:"/c C:\\Progra~1\\ScanSoft\\OPCaptureSDK12\\Distributi on\\opo.exe " + tmpDirPath)
    }
    }
    else {
    ant.exec(executable:'cmd.exe') {
    arg(line:"/c C:\\Progra~1\\ScanSoft\\OPCaptureSDK12\\Distributi on\\op.exe " + tmpDirPath)
    }
    }

    //here tmpDirPath is the path of the .tif files

    I asked him his response was:
    Take args from command line to execute the omni page as follows
    C:\\Progra~1\\ScanSoft\\OPCaptureSDK12\\Distributi on\\opo.exe
    use exec Runtime class to execute omni page.

    I am not getting thiswhen i do it is opening in .GUI mode..


    This is very urgent requirement for me...please Help..thanks
    Last edited by jazz2k8; 04-28-2008 at 07:26 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Default

    I mean If i use that code i dont want to see any GUI on my screen.it should take tmpDirPath (.tif images path) as argument and processes internally.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Default

    the Omnipage GUI(window is poping up).After installing the OmniPage setup the .exe will be created right.If i want to process any .tif through Omni page i will go to open,browse,select,Process,save..this should be done with my program without opening any Omnipage window...For this i have taken the code from my ex.employee..its working fine for him.When i tried the code is not wrking for me..its opening in GUI .

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Ominipage can take command line arguments?

    At the same time, did you search our forums. I've just remember quite similar problem discussed here. Hope that moderator DonCash discussed this in depth.

  7. #7
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Default

    Thats what i am saying :

    the code is working fine when he passes the arguments("I have seen in my previous company that Omnipage (OCR Engine) supports its .exe should take parameters and gives the output from comman line.")....in the first post only..can you please see the code once and let me know what and how to do..

    FYI...that post is also hosted by me only..i still didnt get any solution...the code i got from my ex employee which was working fine in production.

  8. #8
    cracker is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    hey have u got the answer for this...........

  9. #9
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    5

    Wink

    Quote Originally Posted by cracker View Post
    hey have u got the answer for this...........
    Did you see the date for last post? It's 2011 dude...

    This thread is as good as dead.

    Goldest
    Last edited by goldest; 01-13-2011 at 07:27 AM.
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Center background image
    By Floetic in forum AWT / Swing
    Replies: 1
    Last Post: 04-24-2008, 05:50 PM
  2. window background color?
    By javan00b in forum New To Java
    Replies: 3
    Last Post: 01-29-2008, 10:43 AM
  3. Set the background in Java
    By barney in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 07:13 AM
  4. Background image in java
    By toby in forum AWT / Swing
    Replies: 1
    Last Post: 07-29-2007, 07:15 AM
  5. Why this image background is black ?
    By samson in forum Java 2D
    Replies: 1
    Last Post: 07-17-2007, 04:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •