Re: ZipFile [AHK v1.1 and AHK v2.0]
Posted: 13 Jan 2017, 12:19
7za - wrapper discussion is continued here:
https://autohotkey.com/boards/viewtopic.php?f=5&t=26832
https://autohotkey.com/boards/viewtopic.php?f=5&t=26832
Let's help each other out
https://www.autohotkey.com/boards/
this does not work - all values are blankCoco wrote:Code: Select all
MsgBox % "Name: " . item.name . "`nSize: " . item.size . "`nType: " . item.type . "`nDate modified: " . item.date . "`nRelative Path: " . item.path
Code: Select all
TestZip := new ZipFile("TestZip.zip")
TestZip.pack("folder",1) ; 1 = del
4 Do not display a progress dialog box.
8 Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.
16 Respond with "Yes to All" for any dialog box that is displayed.
64 Preserve undo information, if possible.
128 Perform the operation on files only if a wildcard file name (*.*) is specified.
256 Display a progress dialog box but do not show the file names.
512 Do not confirm the creation of a new directory if the operation requires one to be created.
1024 Do not display a user interface if an error occurs.
2048 Version 4.71. Do not copy the security attributes of the file.
4096 Only operate in the local directory. Don't operate recursively into subdirectories.
9182 Version 5.0. Do not move connected files as a group. Only move the specified files.
Anybody know if it is at all possible to Zip file names that contain unicode characters using the Windows native Zip feature that this (and other similar functions posted on the forum) uses? I know I could resort to third party zip programs (exe, dll) but would like to avoid it.[Window Title]
Compressed (zipped) Folders Error
[Content]
'D:\test\Google 雲端硬碟' cannot be compressed because it includes characters that cannot be used in a compressed folder, such as 雲端硬碟. You should rename this file or directory.
Code: Select all
' To zip using utf-8 filenames, set the OemCodePage = 65001
zip.OemCodePage = 65001
Hello joedf,
Code: Select all
dest[IsPack && arg ? "MoveHere" : "CopyHere"](items, 4|16)
Code: Select all
dest[IsPack && arg ? "MoveHere" : "CopyHere"](items, 16|256)
Code: Select all
items.Filter(0x00020|0x00040, fspec)