Page 2 of 2 FirstFirst 12
Results 21 to 32 of 32
  1. #21
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default no windows no cmd

    Can anyone tel me this what does this mean?/?

    cmd.exe???
    :eek:

    cmd.exe is present only in Windows :D
    i am the future

  2. #22
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

    Default

    thats ok...How to implement it with my omnipage.exe...

    with cmd.exe can we run it in silent mode?(background?)

  3. #23
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default as DonCash said

    as DonCash said, if OmniPage.exe can take parameters then yes!!:)
    i am the future

  4. #24
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

    Default

    yeah ..i have seen in my previous company that it will take params...if i try here it is opening in GUI mode...:-(

  5. #25
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    What parameters should be added in order to run that omnipage.exe?
    freedom exists in the world of ideas

  6. #26
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

    Default

    it is taking parameters of .tiff images..like

    C:\\omnipage\\omnipage.exe,"1.tif,2.tif"

  7. #27
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    try this,

    Java Code:
    Runtime.getRuntime().exec("cmd /C start C:\\omnipage\\omnipage.exe 1.tif, 2.tif");
    Update us,
    freedom exists in the world of ideas

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

    Default

    I'm confusing what he is talking about GUI or something. May be he want to do this through a GUI. But it's not difficult. Or may be he is looking to deal with the original application GUI??

  9. #29
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

    Red face

    The following error i am getting:

    java.io.IOException: Cannot run program "cmd /C start C:\Program Files\ScanSoft\OmniPage15.0\omnipage.exe": CreateProcess error=2, The system cannot find the file specified
    Exception in thread "main" java.lang.NullPointerException
    at ProBuild.main(ProBuild.java:29)


    Here comes my code:


    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;


    public class ProBuild {

    public static void main(String args[]) throws IOException{
    Process process = null;
    try{

    process = new ProcessBuilder("cmd /C start C:\\Program Files\\ScanSoft\\OmniPage15.0\\omnipage.exe","D:\\ Invoice\\fa1.tif").start();

    }
    catch(Exception e)
    {System.out.println(e);}

    InputStream is = process.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line;

    while ((line = br.readLine()) != null) {
    System.out.println(line);
    }
    }
    }


    if i pass parameters like :

    process = new ProcessBuilder("C:\\Program Files\\ScanSoft\\OmniPage15.0\\omnipage.exe","D:\\ bharath\\fa1.tif").start();

    It is opening in GUI mode....where as i want to run it in the background...
    Is there any thing in java like pop-up=false

  10. #30
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    You must be having some doc of omnipage software, in which all the command line parameters will be there. Certainly there must some argument which make the omnipage to run in backgroud.

    Also, it is quite possible that omnipage is having there own libraries.

    i googled for omnipage, one of the result was omnipage sdk . may be you know what it is :confused:
    i am the future

  11. #31
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

    Default

    thnx Rakesh...actually i am trying the same tooo....:cool: omnipage sdk..it will works i think...thnx for ur time nd support

  12. #32
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    how about closing the thread as SOLVED ;) :D
    i am the future

Page 2 of 2 FirstFirst 12

Posting Permissions

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