symadis Posted October 5, 2007 Share Posted October 5, 2007 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©Éè· +)àjëh×6#include<_ZipPlugin.au3> PluginOpen("Au3Zip.dll") _ZipUnZip("C:\DIR\*.zip","C:\DIR\") 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 Loris Link to comment Share on other sites More sharing options...
Zedna Posted October 5, 2007 Share Posted October 5, 2007 (edited) Notice also commented debug code #include <_ZipPlugin.au3> #Include <File.au3> ;~ #Include <Array.au3> PluginOpen("Au3Zip.dll") $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) Next EndIf Edited October 5, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now