nvysel24
04-20-2010, 05:06 PM
Im trying to use 7zip that does "on the fly zipping"
A little background, I take a user input it then writes a file in a folder, then 7zip zips that folder and returns the zipped file in a link for the user to download.
what im having trouble with is i guess the syntax it gives me this error
error '80070002'
/testing_enviro/zipfiles2.asp, line 5
i researched this error and it says that it cant find what ever im trying to reference.
this below is the code
<%
response.write "hello"
set shell = CreateObject("WScript.Shell")
zipCommand = server.mappath("\testing_enviro\") & "7za a -tzip login.zip filezillaportable"
shell.Run zipCommand, 1, true
set shell = nothing
%>
right now its mapping to a virtual directory because it yelled at me for being a physical path so i did the virtual dir. other than that the 7za a.... is the syntax for 7zip to zip the file
I just dont know where to go from here. after i get this working i can easily get it to return the link and previously write the file.
Any suggestions?
A little background, I take a user input it then writes a file in a folder, then 7zip zips that folder and returns the zipped file in a link for the user to download.
what im having trouble with is i guess the syntax it gives me this error
error '80070002'
/testing_enviro/zipfiles2.asp, line 5
i researched this error and it says that it cant find what ever im trying to reference.
this below is the code
<%
response.write "hello"
set shell = CreateObject("WScript.Shell")
zipCommand = server.mappath("\testing_enviro\") & "7za a -tzip login.zip filezillaportable"
shell.Run zipCommand, 1, true
set shell = nothing
%>
right now its mapping to a virtual directory because it yelled at me for being a physical path so i did the virtual dir. other than that the 7za a.... is the syntax for 7zip to zip the file
I just dont know where to go from here. after i get this working i can easily get it to return the link and previously write the file.
Any suggestions?