Article View: borland.public.jbuilder.java.language
Article #8102Re: Call a .bat
From: icsd.jt
Date: Wed, 18 Apr 2001 06:06
Date: Wed, 18 Apr 2001 06:06
34 lines
1884 bytes
1884 bytes
Hello
I have try this
...
Runtime rt=Runtime.getRuntime();
try
{
Process proc = rt.exec(".\\xxx.bat");
...
( The file xxx.bat is in the directory of the .jpx
and naturaly this xxx.bat run alone correctly )
A DOS windows is effectively open but he is
empty : the .bat does not run.
Have you an idea ?
I have try this in NT5 (Windows Pro 2000)
Thank , Jacques
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> a οΏ½crit dans le message news:
MPG.15407bdc296cf9bd98a11a@forums.borland.com...
> On Tue, 10 Apr 2001 17:55:03 +0200, icsd.jt@wanadoo.fr wrote:
>
> > what is the best way for call a xxx.bat from an
> > JB4 appli ?
>
> To call a bat file from a Java application, use the Runtime exec()
> method.
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
> http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3add2ebb_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ad32ca1$1_2@dnews> <MPG.15407bdc296cf9bd98a11a@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,1b19f5d9dbd32d49 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-17 23:14:38 PST Reply-To: <icsd.jt@wanadoo.fr> From: <icsd.jt@wanadoo.fr> Newsgroups: borland.public.jbuilder.java.language References: <3ad32ca1$1_2@dnews> <MPG.15407bdc296cf9bd98a11a@forums.borland.com> Subject: Re: Call a .bat Date: Wed, 18 Apr 2001 08:06:58 +0200 Lines: 36 Organization: ICSD - JaC X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 217.128.25.215 Message-ID: <3add2ebb_2@dnews> X-Trace: dnews 987573947 217.128.25.215 (17 Apr 2001 23:05:47 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews