Article View: borland.public.jbuilder.java.language
Article #7979Re: Getting Def
From: John McGrath TeamB
Date: Sat, 05 May 2001 06:56
Date: Sat, 05 May 2001 06:56
25 lines
1519 bytes
1519 bytes
On Fri, 4 May 2001 14:14:09 +0200, Erwin Olaerts wrote:
> It can be done with the following command:
>
> Runtime.getRuntime().exec("cmd /c Start filename.pdf");
>
> The only thing is that this shows a DOS windows for a very short moment.
There are several reasons why the rundll32 method is better:
As you point out, using CMD shows command prompt window.
Using CMD to launch a program will not work on Windows 95/98/ME
systems, since the CLI for those systems is COMMAND.COM.
RunDLL32 should be a little more efficient.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.155d66295a54734398a19a@forums.borland.com>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3af165f4_2@dnews> <MPG.155bfe5339e0223c98a18f@forums.borland.com> <3af29d21_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,23c4ef4f8da51747 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-05 00:06:06 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Getting Def Date: Sat, 5 May 2001 02:56:10 -0400 Message-ID: <MPG.155d66295a54734398a19a@forums.borland.com> References: <3af165f4_2@dnews> <MPG.155bfe5339e0223c98a18f@forums.borland.com> <3af29d21_2@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 989045768 209.92.40.60 (4 May 2001 23:56:08 -0700) Lines: 25 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews