Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2003
    Posts
    27

    Dumb Newb Question - File Attachments

    I thought this would be easy - but my brain has stuck

    What is the best way to distribute a zip file as part of an AMS application? I'd like users to be able to click on an image object which prompts them to save a zip file (which is stored in the project folder) to a directory of their choice.

    Thanks

    Jim

    www.tutor2u.net
    ----------------------------------
    www.tutor2u.net
    UK Online Learning Resource of the Year

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Jim,

    Do you mean that you want to extract the contents of a zip file to the users HD or just save an existing zip file to the HD for them to open later on?

    Either Zip.Extract or File.Copy.

    You can get the location by using Dialogue.FolderBrowse and then build it into a variable to use in the Zip.Extract/File.Copy action.
    Last edited by longedge; 06-04-2005 at 11:29 AM.

  3. #3
    Join Date
    Feb 2003
    Posts
    27
    Not sure I'm doing this quite right:

    My code is


    destination = Dialog.FolderBrowse("Please select a folder where you would like to save your files:", "AutoPlay\\Docs");

    Zip.Extract("AutoPlay\\Docs\\MyZip.zip", {"*.*"}, "destination", true, true, "", ZIP_OVERWRITE_NEVER, nil);

    Can anyone tell me what I'm doing wrong/missing?

    Thanks

    Jim
    ----------------------------------
    www.tutor2u.net
    UK Online Learning Resource of the Year

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    A quick guess without trying it Jim try -

    Zip.Extract("AutoPlay\\Docs\\MyZip.zip", {"*.*"}, destination, true, true, "", ZIP_OVERWRITE_NEVER, nil);

    destination is a variable and not a string.

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi, this one's kind of cool because it only requires a single line of code. Here's a working example attached. Hope that helps.
    Attached Files

  6. #6
    Join Date
    Aug 2003
    Posts
    2,427
    Economy is good - and that's economic

    (Should come with a health warning though - aaaahhhh I just fell off my chair with vertigo. )

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hee. Vertigo rules.

  8. #8
    Join Date
    Feb 2003
    Posts
    27
    Fantastic - many thanks everyone!

    Jim
    ----------------------------------
    www.tutor2u.net
    UK Online Learning Resource of the Year

Similar Threads

  1. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  2. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  3. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

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