Article View: borland.public.jbuilder.java.language
Article #19736To create a new process and run a batch file
From: Rekha Venkatesh
Date: Tue, 23 Dec 1997 00:00
Date: Tue, 23 Dec 1997 00:00
18 lines
799 bytes
799 bytes
Hi
I want to create a new process and run a batch file. I tried the following
code:
Runtime.getRuntime().exec("C:\\jbuilder\\notes.bat");
I have a batch file notes.bat. If I run the same command from DOS prompt it
works. But the exec does not. Is this the correct way?. Is there any other
way to do this?. Thanks for help.
Content of the batch file:
D:
cd D:\jbuilder
dir
Rekha
Technical Details
Message-ID:
<01bd0fc5$a6c31a60$18d812c7@rvenkatesh>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,cc7c65a8187c93c2,start X-Google-Attributes: gidf74b3,public From: "Rekha Venkatesh" <rvenkate@alta-oh.com> Subject: To create a new process and run a batch file Date: 1997/12/23 Message-ID: <01bd0fc5$a6c31a60$18d812c7@rvenkatesh> X-Deja-AN: 309666075 Organization: None Newsgroups: borland.public.jbuilder.java.language