Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Re: Re: Re: can we run dos command using java Posted by rajan on 6 Jan 2001 at 10:16 PM
: Here we go:
:
: try{
: Runtime r = Runtime.getRuntime();
: Process win = r.exec("C:\\WINNT\\explorer.exe");
: Process unix = r.exec("/usr/bin/ls");
: }catch(Exception e){
: System.out.println(e);
: }
:
: It is too bad that you cannot call EXEs
: directly which are in your PATH-environment variable.
:
: Reg, nils
:
:
thank u verymuch nils



Thread Tree
rajan can we run dos command using java on 5 Jan 2001 at 6:11 AM
nils Re: can we run dos command using java on 5 Jan 2001 at 6:59 AM
rajan Re: Re: Re: can we run dos command using java on 6 Jan 2001 at 10:16 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.