Article View: borland.public.jbuilder.java.language
Article #7802Runtime Exec Example
From: Sara Swartz
Date: Tue, 15 May 2001 13:42
Date: Tue, 15 May 2001 13:42
13 lines
1237 bytes
1237 bytes
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:
<3b013312$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b8415ce0c4751a66,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-15 07:11:18 PST From: "Sara Swartz" <sara_swartz@lnospamorienti.com> Newsgroups: borland.public.jbuilder.java.language Subject: Runtime Exec Example Date: Tue, 15 May 2001 09:42:19 -0400 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 63.98.29.194 Message-ID: <3b013312$1_1@dnews> X-Trace: dnews 989934354 63.98.29.194 (15 May 2001 06:45:54 -0700) Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews