Jump to content

Zip32.au3 - Can't zip a folder with periods in it?


Go to solution Solved by souldjer777,

Recommended Posts

Good Morning AutoIT Gurus!
First - props to AutoIT and props to you guys  :thumbsup:
It's an incredibly rich featured programming language - Thank you, thank you, thank you!
 
 
Here is my issue with using the <Zip32.au3>
If my folder name has periods in it, the zip function fails:
 
Script Portion:
$FolderName01 = "Computer_IP_192.168.2.1"
; Example formatting:
; _ZIP_Archive($ZipFile, $DirToZip)
_ZIP_Archive($FolderName01, @ScriptDir & '' & $FolderName01)
 
Console Output:
!> _ZIPPrint: zip I/O error
!> _ZIPPrint: zip error: Could not create output file (Computer_IP_192.168.2.1)
 
Basically this Zip32.au3 can't zip folders with periods in them.
Is this something discovered already?
 
This is my current work around:
$FolderName01 = StringRegExpReplace( $FolderName01, "[.]", "_")
 
Just wondering if there is an update because I love the function Zip32.au3!
"I put that sh** on everything" like Frank's Redhot  :idiot:
 
Thanks!
Edited by souldjer777

"Maybe I'm on a road that ain't been paved yet. And maybe I see a sign that ain't been made yet"
Song Title: I guess you could say
Artist: Middle Class Rut

Link to comment
Share on other sites

  • 2 weeks later...
  • Solution

Never-mind - I downloaded the 7zip open source command line version and it works great.

"Maybe I'm on a road that ain't been paved yet. And maybe I see a sign that ain't been made yet"
Song Title: I guess you could say
Artist: Middle Class Rut

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

×
×
  • Create New...