| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
hmm.. try adding:
Code:
-dir=root |
|
#17
|
|||
|
|||
|
Quote:
Almost perfect! Code:
-dir=root Code:
-dir=relative Another closely related question, right now I have a folder, Folder2 which is in a large directory called Folder1. Inside Folder2, there are other subfolders files etc. How would I put the path down so that my zipped file when extracted would extract Folder2, which would have its other subfolders and files etc? The code that would be modified is where Code:
Server.MapPath("Folder2")&"\*.*")
The full line is: Code:
Call CreateZipFile(Server.MapPath("myzip.zip"), Array(Server.MapPath("Folder2")&"\*.*"))
So what it's doing right now is just zipping the stuff inside of Folder2, not the folder itself. Not a big issue, but just wondering how to do it. Thanks again for all your help. |
|
#18
|
||||
|
||||
|
try this:
Code:
Array(Server.MapPath("Folder2"))
(without /*.*) |
|
#19
|
|||
|
|||
|
Quote:
Great. Thanks for all your help! |
|
#20
|
|||
|
|||
|
hi
its really nice , but how can i run this ? how we can pass our file to "PKZIP25.exe " file and how can that exe will create a .zip folder of same plz done mine , really i m not getting u r point Thankx
__________________
if you found this post is useful click (right side on this reply ) and agreeCoding Stuffs, web development help Thank You, ![]() KiranK |
|
#21
|
|||
|
|||
|
You are using ASP to implement this right? Look at very first few posts of this thread. They give examples on how to do it.
|
|
#22
|
|||
|
|||
|
Quote:
hi , i m not able to zip the file upto here its ok , may be some prb with creating "CreateObject("WScript.Shell")" object. Code:
'execute:
Set objShell=Server.CreateObject("WScript.Shell")
objShell.Run strCommand, 0, True 'wait!
'response.write "done"
before this line i have try Code:
response.write "<br>" &strCommand and i got one string , and simply i just put this string on command prompt then its working fine , it creates the zip file on that location , but if i m trying to do it via this "WScript.Shell" then its not working (its nt creating zip file) so wht wrong with this? plz help Thankx Last edited by markWilson : April 16th, 2009 at 02:44 AM. |
|
#23
|
||||
|
||||
|
post full error message and we'll see what's wrong.
|
|
#24
|
|||
|
|||
|
Quote:
hi there is no such error , its working , but its not creating a zip file on that specific path this is an error i have cross check all the path and all . Thank |
|
#25
|
||||
|
||||
|
are you sure there's no On Error Resume Next in your code?
|
|
#26
|
|||
|
|||
|
Quote:
yes i m sure . there is no such on error resume next code written . |
|
#27
|
||||
|
||||
|
Quote:
|
|
#28
|
|||
|
|||
|
Quote:
thanx it's solve. i got the output thankx agian |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Creating zip files using classic ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|