Article View: borland.public.jbuilder.java.api
Article #2991Working Dir
From: Tim
Date: Mon, 15 Jun 1998 00:00
Date: Mon, 15 Jun 1998 00:00
9 lines
779 bytes
779 bytes
I want to launch a process and set it's working directory. I have tried
Properties props=new Properties();
props.put("user.dir",workingDir);
System.setProperties(props);
Process p = Runtime.getRuntime().exec(theCommandString);
But the process executes doesn't execute in workingDir. Any thoughts?
Technical Details
Message-ID:
<35855393.B468286F@usa.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e605f80825532dd8,start X-Google-Attributes: gid1089d0,public From: Tim <txlee@usa.net> Subject: Working Dir Date: 1998/06/15 Message-ID: <35855393.B468286F@usa.net> X-Deja-AN: 362871108 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api