Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Location
    Howell, MI
    Posts
    22

    Huh? Help with ZIP PLUGIN

    All I could use some help understanding why my ZIP files do not preserve the Path Name. Code below:

    --read in user selected folder to archive--
    sFolder = Dialog.FolderBrowse("Select Test to Archive", ""..sLastInstalledPath.."\\data")
    --read in all files names into table--
    tFolder = File.Find(""..sFolder.."", "*.*", true, true)
    Debug.ShowWindow(true)
    Debug.Print(""..tFolder[1].."\n")
    Debug.Print(""..tFolder[2].."\n")
    Debug.Print(""..tFolder[3].."\n")
    Debug.Print(""..tFolder[4].."\n")
    Debug.Print(""..tFolder[5].."\n")
    Debug.Print(""..tFolder[6].."\n")
    --used to find test name--
    sFileCOUNT = String.Length(sFolder)
    sFileSTART = String.ReverseFind(sFolder, "\\", false)
    sZIPFILELENGTH = sFileCOUNT - sFileSTART
    sFile = String.Right(sFolder, sZIPFILELENGTH)
    --zip all selected files--
    Zip.Add(SessionVar.Expand("%DesktopFolderCommon%\\ "..sFile..".zip"), tFolder, true, "", 9, nil, true);

    --OUTPUT FROM DEBUG WINDOW--
    C:\dts_tdas\data\20189 01 Static\NHTSA
    C:\dts_tdas\data\20189 01 Static\NHTSA\UDS
    C:\dts_tdas\data\20189 01 Static\NHTSA\UDS\20189 01 STATIC_UDS.001
    C:\dts_tdas\data\20189 01 Static\NHTSA\UDS\20189 01 STATIC_UDS.002
    C:\dts_tdas\data\20189 01 Static\NHTSA\UDS\20189 01 STATIC_UDS.003
    C:\dts_tdas\data\20189 01 Static\NHTSA\UDS\20189 01 STATIC_UDS.004

    The paths are there when coming out of TABLE but not created or stored in sFile.zip

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    DarrellBlack,

    I can replicate this issue. It appears as though the Zip.Add action is not preserving the paths that are used to create it. I will log this for the developers to look into.

    Adam Kapilik

  3. #3
    Join Date
    Jan 2005
    Location
    Howell, MI
    Posts
    22

    Thank You

    Adam, thank you for the quick reply. I will be standing by for hopfully a patch or updated plugin. Would this come by a update (true update) or do I have to watch a forum for plugin updates?

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    This would be in a service release.

    Adam Kapilik

  5. #5
    SUF6NEWBIE Guest
    Have you tried this method..

    Code:
    sFolder = the action-s to get it
    if sFolder then
    Zip.Add(your final destination", {sFolder.."\\*.*"}, true, "my secret password", 9, nil, true);
    end

    (..less lines of code and zip action treats it as a table)

Similar Threads

  1. Example: Hiding Resources in Password Protected ZIP Files
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 1
    Last Post: 03-18-2005, 08:53 AM
  2. Zip Actions Plugin - 32 bits or 64 bits
    By brianlesker in forum Setup Factory 7.0
    Replies: 0
    Last Post: 10-08-2004, 08:03 AM
  3. Indigo Rose Plugin Changes
    By Lorne in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 09-27-2004, 04:17 AM
  4. Example: Using Zip Actions
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 03:07 PM
  5. 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

Posting Permissions

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