Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Dale Matthews   on Feb 08 In Java Category.

  
Question Answered By: Umaiza Hashmi   on Feb 08

Try something like this:

String command = "zip file.zip file1 file2";
// the zip  syntax might be wrong...
Process p = Runtime.getRuntime().exec(command);

You can create  nicer sequences (with threads and all), but this should give
you an idea where to start...

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to create a zip file in java Or get search suggestion and latest updates.


Tagged: