🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14548

Re: WinExec (win32API) in Java...

#14548
From: Tor Iver Wilhelmsen
Date: Mon, 23 Aug 1999 00:00
20 lines
912 bytes
"MARTIN LINDGREN" <martin.lindgren@mbox302.swipnet.se> writes:

> Hi,
> Does anyone know if there is a java class that handle what WinExec or
> CreateProcess does in the win32API?

1) 

 Process p = Runtime.getRuntime.exec(commandline).

2)

import com.ms.win32.*;

...

SECURITY_ATTRIBUTES sec = new SECURITY_ATTRIBUTES();
boolean success = Kernel32.CreateProcess(name, commandline, sec);

The latter only runs in the MS JVM.
Technical Details
Message-ID: <uemgvvwao.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7ppkd4$dr89@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,214b9d73ea33fd7b
X-Google-Attributes: gidf74b3,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: WinExec (win32API) in Java...
Date: 1999/08/23
Message-ID: <uemgvvwao.fsf@sds.no>
X-Deja-AN: 516056949
Sender: towi@SDSA1761
References: <7ppkd4$dr89@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language