aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to start a process??" Watch "How to start a process??" New topic
Author

How to start a process??

Ann Toh
Ranch Hand

Joined: Jul 18, 2003
Posts: 45
Hi,
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: 8898

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


Groovy
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

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 java.util.zip package.


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

Joined: Sep 29, 2000
Posts: 8521
Chekc out this topic:
http://www.coderanch.com/t/321925/java/java/Java-ZIP-UNZIP


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to start a process??
 
Similar Threads
Help in encryption and decryption of file
What to extract JWebPlus ?
JarSpy
WA #1.....word association
Unzip freemarker.tar.gz on windows pc