File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Executing Windows Command using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Executing Windows Command using java" Watch "Executing Windows Command using java" New topic

Executing Windows Command using java

V Senthil

Joined: Jun 21, 2005
Posts: 8

I want to execute CVS command line in Windows oparting System using Java. Could any one help me to execute windows command through Java program?

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Please see the request to fix your display name here.

This is your second warning.

Seb Mathe
Ranch Hand

Joined: Sep 28, 2005
Posts: 225
Look at java.lang.Runtime and its method exec.

But there are some Java libraries for dealing with it.
[ October 07, 2005: Message edited by: Seb Mathe ]

Regards,<br />Seb<br /> <br />SCJP 1.4
I agree. Here's the link:
subject: Executing Windows Command using java
It's not a secret anymore!