Jump to content
Sign in to follow this  

Help with the _ZipPlugin

Recommended Posts

Hi everybody

I got a zip file in a directory and in this zip file there is only a csv file who as the same name that the zip file.

The name of the zip file is random so all i want to do is to unzip any zip to the directory and rename any csv extracted into a static filename (like export.csv)

I try to make like FileMove or whatever but it's not working.

*.zip is working

FileMove("C:\DIR\*.zip", "C:\DIR\test",9)oÝ÷ Û8©Éè·

I have to tell that the zip script is working fine when i give the full zip file name.

Plus i don't know how to rename any csv file into a specified one.

Any ideas?

Thank you for your help


Share this post

Link to post
Share on other sites

Notice also commented debug code

#include <_ZipPlugin.au3>
#Include <File.au3>
;~ #Include <Array.au3>


$FileList=_FileListToArray("C:\DIR\", "*.zip", 1)
If Not @Error Then
;~  _ArrayDisplay($FileList,"$FileList")
    For $i = 1 To UBound($FileList) - 1
        _ZipUnZip("C:\DIR\" & $FileList[$i], "C:\DIR\")
;~      ConsoleWrite("C:\DIR\" & $FileList[$i] & @CRLF)
Edited by Zedna

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...