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 How to start a process?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 8927

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

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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
I agree. Here's the link:
subject: How to start a process??
It's not a secret anymore!