🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2096

Re: Shell

#2096
From: Nabin Thomas
Date: Sun, 10 Jun 2001 02:34
45 lines
1961 bytes
Or try
Runtime.getRuntime().exec("start c:\spc\spc.bat")

Rich Wilkman wrote:

> António:
>
> It's not working because you aren't invoking the windows "shell".  Try:
>
> Runtime.getRuntime().exec("command.com /c c:\spc\spc.bat");
>
> -Rich
>
> "António Ferreira" wrote:
> >
> > Hi,
> >
> >   is there a shell comand in java 1.2 that allows the execution of a batch
> > file on  windows. I tryed Runtime.getRuntime().exec("c:\spc\spc.bat") and it
> > didn't work. I appreciate all your help.
> >
> >   Thanks,
> >
> >   António José Ferreira

--
        ***********************************
***************************************************
******************* Web Card **********************
***************************************************

Name :   Nabin Thomas

e-mail :   nabinthomas@hotmail.com

Web :   http://nabin.topcities.com

Feel free to contact me thru e-mail or MSN Mssenger
if required but DONOT SPAM

***************************************************
 ***********************************
Technical Details
Message-ID: <3B22DCBE.B5915055@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3b20cd34$1_1@dnews> <3B21035E.82656C8E@formlessvoid.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,ec246458be6fbce7
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-06-09 20:08:59 PST
Message-ID: <3B22DCBE.B5915055@hotmail.com>
Date: Sun, 10 Jun 2001 08:04:38 +0530
From: Nabin Thomas <nabinthomas@hotmail.com>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Shell
References: <3b20cd34$1_1@dnews> <3B21035E.82656C8E@formlessvoid.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 202.9.167.205
X-Trace: dnews 992141671 202.9.167.205 (9 Jun 2001 19:54:31 -0700)
Lines: 48
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews