Results 1 to 2 of 2

Thread: Copying file to .jar directory

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2011
    Posts
    70

    Exclamation Copying file to .jar directory

    How do i copy a file in /mob in a jar file,
    Without disturbing the other files
    Last edited by M0NKEYRASH; Aug 24th, 2011 at 01:15 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Copying file to .jar directory

    JAR files use ZIP compression, so any component that supports ZIP compression will do the job, e.g. DotNetZip or SharpZipLib. It took me all of 30 seconds on Google to find an example.

    http://www.google.com.au/search?q=.n...ient=firefox-a
    http://www.dreamincode.net/forums/to...to-a-jar-file/
    http://www.codeproject.com/KB/files/...g_jars_VB.aspx

    That deals with opening an archive only but you can quite easily find examples of adding files to an archive, once you know that they are basically ZIP files and have chosen your ZIP component. If I can find that information with no prior knowledge on the subject, so can you.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width