Article View: borland.public.jbuilder.java.language
Article #348problem with Runtime.getRuntime().exec
From: borland
Date: Thu, 29 Dec 2005 14:36
Date: Thu, 29 Dec 2005 14:36
30 lines
2078 bytes
2078 bytes
Hello,
I' ve a problem. I have windows XP professional and working JBuilder X.
In my application (swing) when i have windows program:
.........................................................................................................
try {
Runtime.getRuntime().exec("C:\\WINDOWS\\system32\\cmd.exe /C
WINPROG"); // WINPROG - windows program (excel)
}
catch (Exception ex){
ex.printStackTrace();
}
.........................................................................................................
I have no problem.
But when i have os program:
.........................................................................................................
try {
Runtime.getRuntime().exec("C:\\WINDOWS\\system32\\cmd.exe /C
DOSPROG"); // DOSPROG - dos program (c:\windows\system32\edit.com)
}
catch (Exception ex){
ex.printStackTrace();
}
.........................................................................................................
Nothing happens (not open dos window)
What can it be?
Thanks in advance.
Apostolis
Hatziyannis
--
Technical Details
Message-ID:
<43b3f43e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,f3438594c1f41e9b,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "borland" <apostolis@orbis.gr> Newsgroups: borland.public.jbuilder.java.language Subject: problem with Runtime.getRuntime().exec Date: Thu, 29 Dec 2005 16:36:54 +0200 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 193.92.228.57 Message-ID: <43b3f43e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135866942 193.92.228.57 (29 Dec 2005 06:35:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail