🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Shell

#2094
From: Rich Wilkman
Date: Fri, 08 Jun 2001 16:54
20 lines
1284 bytes
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
Technical Details
Message-ID: <3B21035E.82656C8E@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-04!supernews.com!feed.textport.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews
References: <3b20cd34$1_1@dnews>

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-08 10:03:53 PST
Message-ID: <3B21035E.82656C8E@formlessvoid.com>
Date: Fri, 08 Jun 2001 09:54:54 -0700
From: Rich Wilkman <richw@formlessvoid.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Shell
References: <3b20cd34$1_1@dnews>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 208.236.69.60
X-Trace: dnews 992019295 208.236.69.60 (8 Jun 2001 09:54:55 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-04!supernews.com!feed.textport.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews