Jump to content

ZIP Virtual File System


Ontosy
 Share

Recommended Posts

Do you know a ZIP Virtual File System library to use with Au3?

what's that ?

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

what about creating a script with command line params... then get the contents of the zip file and write them as lnk files pointing at: C:\thescript "thefile" so to unzip them and open them ?

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Using the method I suggested Above... here it is:

#include <Zip.au3>
Func _VirtualZip($hZipFile, $sDestination)
    $list = _Zip_List($hZipFile)
    For $i = 0 to UBound($list)-1
        $icon = _GetIcon($list[$i])
        FileCreateShortcut(@ScriptDir & "\Unzip.exe ", $sDestination & "\" & $list[$i], Default, $Zipfile "\" & $list[$i],"Virtual Zipped File", $icon) ;where unzip.exe is a file which unzips the file passed in the params... could be an au3 script
    Next
EndFunc

Func _GetIcon($path)
    $split = StringSplit($path, ".")
    $ext = $Split[UBound($split)-1]
    $RegName = RegRead("HKEY_CLASSES_ROOT\." & $ext, "")
    $RegIcon = RegRead("HKCR\" & $RegName & "\DefaultIcon", "")
    Return $RegIcon
EndFuncc

hope this fits your needs!

cheers

Edited by torels

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...