Article View: borland.public.jbuilder.java.language
Article #14787Re: problem with execution of a .bat file
From: Per Skjondal
Date: Mon, 02 Aug 1999 00:00
Date: Mon, 02 Aug 1999 00:00
21 lines
1388 bytes
1388 bytes
I am not sure about this, but you could try "C:\WINDOWS\COMMAND\COMMAND.COM
/C compile.bat" or whatever the path to your command.com is. I remember I
had to do something like this in the earlier days.
Cheers
Per Skjondal
Gilles Villeneuve wrote in message
<01bed9d4$8f47e3e0$6d4a97cd@hp9or.UQAT.UQuebec.Ca.>...
>I have a strange problem:
>
>I use the following line to execute file "compile.bat":
>
>Process p = Runtime.getRuntime().exec("compile.bat");
>
>But it doesn't work. The command line works when I execute a .exe file.
>What is strange is that it worked well in an older version of my program. I
>can't see what I have done to make it change.
>
>Any idea?
Technical Details
Message-ID:
<3ggp3.1001$Ffg.179832832@news.telia.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bed9d4$8f47e3e0$6d4a97cd@hp9or.UQAT.UQuebec.Ca.>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d8aed4d320a35d63,start X-Google-Attributes: gidf74b3,public From: "Per Skjondal" <skjoenda@online.no> Subject: Re: problem with execution of a .bat file Date: 1999/08/02 Message-ID: <3ggp3.1001$Ffg.179832832@news.telia.no> X-Deja-AN: 507934909 References: <01bed9d4$8f47e3e0$6d4a97cd@hp9or.UQAT.UQuebec.Ca.> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@telia.no X-Trace: news.telia.no 933597311 195.204.238.110 (Mon, 02 Aug 1999 14:35:11 CEST) Organization: Telia Internet Public Access NNTP-Posting-Date: Mon, 02 Aug 1999 14:35:11 CEST Newsgroups: borland.public.jbuilder.java.language