Article View: borland.public.jbuilder.java.language
Article #693Runtime - external program visibility
From: Oliver
Date: Tue, 01 Mar 2005 09:43
Date: Tue, 01 Mar 2005 09:43
24 lines
1674 bytes
1674 bytes
Hello,
i use the getRuntime method to start an external program out of
my Java app: Runtime.getRuntime().exec(cmd);
where cmd is an array of String
String[] cmd =
{ "\"c:/Whatever.exe\"","/user=User","/password=XXX"};
Now the issue is that the program (Whatever.exe) starts, it
accepts the parameters (user,password), - the / is required by
Whatever.exe - but the window of the application Whatever.exe is
not visible! The process is there (one can see it in the
taskmanager).
In Delphi i have the possibility by using Windows.CreateProcess
and passing a "StartupInfo"
(lStartupInfo.dwFlags:= STARTF_USESHOWWINDOW;
lStartupInfo.wShowWindow:= SW_SHOWNORMAL;) but here in Java i dont see a possibility of determining in which way the external app is being started up or determining its visibility.
kind regards
Oliver
Technical Details
Message-ID:
<42243956$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,e543362b6f52ec0b,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Oliver" <o.maas@nospam_metrohm.de> Sender: "Oliver" <o.maas@nospam_metrohm.de> Reply-To: "Oliver" <o.maas@nospam_metrohm.de> Subject: Runtime - external program visibility Newsgroups: borland.public.jbuilder.java.language X-User-Info: 81.90.37.2 X-Forwarded-For: 192.168.103.10, 127.0.0.1 NNTP-Posting-Host: 207.105.83.66 Message-ID: <42243956$1@newsgroups.borland.com> Date: 1 Mar 2005 01:43:50 -0800 X-Trace: newsgroups.borland.com 1109670230 207.105.83.66 (1 Mar 2005 01:43:50 -0800) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail