This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Executing Windows Command using java
It's not a secret anymore!