🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Runtime Exec Example

#7732
From: Danuta Czajkowska
Date: Mon, 21 May 2001 08:02
14 lines
1422 bytes
Sara Swartz <sara_swartz@lnospamorienti.com> wrote:
> Hi,

> Can anyone show me an example of using a dos command in a Java program?
> Ideally, I would like to run the commands in the program and not have to
> call a batch file, but if that isn't possible, how I would call the batch
> file?

> The command would remap (and later un-map) the user's Z: drive. Is it
> possible to do that in Java without having to go through the batch file at
> all?

> Thanks,
> Sara
Technical Details
Message-ID: <9eai1o$3bo$1@sunrise.pg.gda.pl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!news.pg.gda.pl!not-for-mail
References: <3b013312$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b8415ce0c4751a66
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-21 01:04:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!news.pg.gda.pl!not-for-mail
From: Danuta Czajkowska <danuta@pg.gda.pl>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Runtime Exec Example
Date: 21 May 2001 08:02:00 GMT
Organization: Technical University of Gdansk
Lines: 16
Message-ID: <9eai1o$3bo$1@sunrise.pg.gda.pl>
References: <3b013312$1_1@dnews>
NNTP-Posting-Host: localhost.pg.gda.pl
X-Trace: sunrise.pg.gda.pl 990432120 3448 127.0.0.1 (21 May 2001 08:02:00 GMT)
X-Complaints-To: abuse@pg.gda.pl
NNTP-Posting-Date: 21 May 2001 08:02:00 GMT
User-Agent: tin/1.5.2-20000206 ("Black Planet") (UNIX) (SunOS/5.6 (sun4u))