rcdmk / aspzip Goto Github PK
View Code? Open in Web Editor NEWA classic ASP zip and unzip utility class that uses the native zip support from Windows (XP and above) - no components needed
A classic ASP zip and unzip utility class that uses the native zip support from Windows (XP and above) - no components needed
This's a good reference.
I have a question to ask you.
Although the source works well.
Can't I get a callback function at the end of the zip work ?
I want to zip file download it after compression work but it is not synchronized.
Hi,
I'm struggling to solve a problem with your class.
On my developing's machine Windows 10 64bit your code is working like a charm! But same code on production's server Windows 2012 r2 64bit has a problem: files is not added to empty zip file.
curArquieve.Copyhere filepath, NoInterfaceYesToAll
don't add any file to empty zip file created.
Have you encountered this kind of problem?
Do you have any hint that can help me to solve this issue?
Thanks
SDeSalve
some zip files are missing after downloading to local system... but all files got created on server (2008 r2). checked in multiple system download count varies..(not full count)
Hello. İ'm trying to use this script on windows server 2012 r2 and windows 8.1 but there is an error. I did to zip the files. However, when I click on the zip file, it does not open and gives an error. Also, I cannot delete the zipped file and move it to another location. Please help me with the error. I really need this script.
Object required: 'curArquieve'.
' Open the existing file and load its contents
dim cnt
set curArquieve = zipApp.NameSpace(m_path) 'CAUSE OF ERROR
Asking this more in hope than expectation.
I have tested your script on 7 different servers, zipping a single file. All the tests use identical code.
On 3 of them (all shared web hosting) your script works as expected.
On the other 4 I get this behaviour.
The script seems to work. The empty zip file is created, but although the zip.Add command is used and doesn't give any error, the zip archive remains empty.
The machines it doesn't work on are
Server 2016 / IIS 10
and
Server 2012 / IIS 8
but I only include that as background info, as the shared hosting is likely to be one of those too.
I'm at a loss as to why this would happen, but have also run out of any ways to diagnose it. Do you have any ideas?
As @OnnoPaap said in a previous issue, your script is becoming very important as the available zip components don't seem to be being updated to work on newer servers.
I'm excited about this Class! I use your json one all the time. Good stuff.
I have it creating a .zip but the resultant file seems to have limited access permission and when I try to open it in Explorer it says I do not have rights to read it.
I'm zipping up a folder, then using msxml, sending it to another server. Is this a limitation -but- using your class will I be able to unzip it on the other server via asp?
Hello, i am trying to use for the first time and i got this error. Could you give me some help?
Tks
My host is locaweb.com.br
Error:
Microsoft VBScript runtime error '800a0030'
Error in loading DLL: 'zipApp.NameSpace'
/aspZip.class.asp, line 86
My Code:
<%
option explicit
Server.ScriptTimeout=9000
%>
<%
dim zip, filepath
filepath = ".\downloads\test.zip"
set zip = new aspZip
zip.OpenArquieve(filepath)
zip.Add("..\css")
zip.CloseArquieve()
set zip = nothing
%>
OK
When I make a list of files to be zipped (in a loop) and add each file one by one (like e.g. 10 files), the resulting archive.zip file only contains 1 file.
Windows Server 2008 R2 64 bits
Classic ASP.
snippet of my code:
dim zip
set zip = new aspZip
zip.OpenArquieve(".\archive.zip")
while not u.EOF
filepath=u.fields("imagefilepath") & "" & u.fields("imagefilename")
response.write("<br>
" & filepath)
zip.Add(filepath)
u.MoveNext
wend
zip.CloseArquieve()
Set zip = Nothing
output:
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400847.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400849.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400819.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400821.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400823.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400825.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400827.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400829.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400831.pdf
Certs/100902/5-0001-A-SB1-01-FND$L9ZR100206\5400845.pdf
archive.zip only contains 1 file which is not stored with a path
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.