This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to start a process?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to start a process??" Watch "How to start a process??" New topic

How to start a process??

Ann Toh
Ranch Hand

Joined: Jul 18, 2003
Posts: 45
can anybody tell me how to write a java program that can control winzip? That is the java program call the winzip, then the winzip will unzip all the files. If can, show me an example.
Thanx in advance!
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8920

May be java.util.jar.JarFile will help. Lemme know the result.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

I don't think WinZip has a command-line interface, so I don't think it can be controlled from Java. If it does have a command-line component, then you can use the Runtime.exec() family of methods to launch it. But as Pradeep points out, you can unzip ZIP files directly from Java using the package.

[Jess in Action][AskingGoodQuestions]
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Chekc out this topic:

"JavaRanch, where the deer and the Certified play" - David O'Meara
Have you tried LearnNowOnline?
subject: How to start a process??