Article View: borland.public.jbuilder.java.language
Article #19879Re: Runtime.exec (String cmd)
From: Simon Dubey
Date: Tue, 02 Dec 1997 00:00
Date: Tue, 02 Dec 1997 00:00
44 lines
1681 bytes
1681 bytes
oops apologies.
java.lang.Runtime.getRuntime().exec ("start mkdir tmp"); - doesn't work
either, but doesn't throw exception.
Can some-one please throw some light.
Thanks Simon.
Simon Dubey wrote:
> Well I seem to be missing something here ! and all docs that I have read
> gloss over the Runtime class.
>
> My problem :-
>
> java.lang.Runtime.getRuntime().exec ("notepad.exe"); - works just fine
>
> But how do you for example create a directory under NT4.0 ?
>
> java.lang.Runtime.getRuntime().exec ("mkdir tmp"); - fails
> java.lang.Runtime.getRuntime().exec ("command mkdir tmp"); - fails
>
> java.lang.Runtime.getRuntime().exec ("start mkdir tmp"); - work but
> rather platform specific.
>
> -- Regards Simon.
> ----------------------------------------
> Simon Dubey // simon@oecj.co.jp
> Advanced Technology Solutions Manager
> Open Environment Corporation Of Japan
> tel: (03) 3340-4652 fax : (03) 3340-4667
> ----------------------------------------
--
----------------------------------------
Simon Dubey // simon@oecj.co.jp
Advanced Technology Solutions Manager
Open Environment Corporation Of Japan
tel: (03) 3340-4652 fax : (03) 3340-4667
----------------------------------------
Technical Details
Message-ID:
<34835AAA.B0456AF6@oecj.co.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<348359E0.3CD4597C@oecj.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,2c49409a35a58c03 X-Google-Attributes: gidf74b3,public From: Simon Dubey <simon@oecj.co.jp> Subject: Re: Runtime.exec (String cmd) Date: 1997/12/02 Message-ID: <34835AAA.B0456AF6@oecj.co.jp> X-Deja-AN: 294347041 References: <348359E0.3CD4597C@oecj.co.jp> Organization: Open Environment Corporation Of Japan Newsgroups: borland.public.jbuilder.java.language