🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting Def

#7980
From: John McGrath TeamB
Date: Sat, 05 May 2001 07:54
21 lines
1650 bytes
On Sat, 5 May 2001 02:56:10 -0400, John McGrath  [TeamB] wrote:

>  Runtime.getRuntime().exec("cmd /c Start filename.pdf");
> 
>  Runtime.getRuntime().exec( new String[] { "rundll32",
>     "url.dll,FileProtocolHandler", fileName } );

One more problem with using CMD:  If your file name has spaces in it, 
this is going to really muck things up.  There may be some way to set 
up the command line properly, but at least my first few attempts at 
doing this from the command line failed.  Spaces are not an issue with 
the rundll32 method.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.155d7bb8708a9f3e98a19f@forums.borland.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3af165f4_2@dnews> <MPG.155bfe5339e0223c98a18f@forums.borland.com> <3af29d21_2@dnews> <MPG.155d66295a54734398a19a@forums.borland.com>

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 01:09:14 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Getting Def
Date: Sat, 5 May 2001 03:54:26 -0400
Message-ID: <MPG.155d7bb8708a9f3e98a19f@forums.borland.com>
References: <3af165f4_2@dnews> <MPG.155bfe5339e0223c98a18f@forums.borland.com> <3af29d21_2@dnews> <MPG.155d66295a54734398a19a@forums.borland.com>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 989049264 209.92.40.60 (5 May 2001 00:54:24 -0700)
Lines: 21
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews