Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old September 16th, 2008, 01:52 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
hmm.. try adding:
Code:
-dir=root
as well.

Reply With Quote
  #17  
Old September 16th, 2008, 10:05 AM
finittz finittz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 15 finittz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 47 m 10 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard
hmm.. try adding:
Code:
-dir=root
as well.


Almost perfect!
Code:
-dir=root
pointed me in the right direction to look for the command I needed, I used this site http://www.uwm.edu/~dtoth/pkzip.html#directories to find what I needed. For anyone else it's
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")&"\*.*") 
currently is.

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.

Reply With Quote
  #18  
Old September 16th, 2008, 10:09 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
try this:
Code:
Array(Server.MapPath("Folder2"))

(without /*.*)

Reply With Quote
  #19  
Old September 17th, 2008, 01:50 PM
finittz finittz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 15 finittz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 47 m 10 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard
try this:
Code:
Array(Server.MapPath("Folder2"))

(without /*.*)


Great. Thanks for all your help!

Reply With Quote
  #20  
Old April 14th, 2009, 07:58 AM
markWilson markWilson is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 253 markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 16 h 24 m 19 sec
Reputation Power: 82
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 agree

Coding Stuffs,

web development help
Thank You,
KiranK

Reply With Quote
  #21  
Old April 14th, 2009, 12:24 PM
finittz finittz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 15 finittz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 47 m 10 sec
Reputation Power: 0
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.

Reply With Quote
  #22  
Old April 15th, 2009, 02:55 AM
markWilson markWilson is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 253 markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 16 h 24 m 19 sec
Reputation Power: 82
Quote:
Originally Posted by finittz
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.


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.

Reply With Quote
  #23  
Old April 16th, 2009, 04:57 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
post full error message and we'll see what's wrong.

Reply With Quote
  #24  
Old April 16th, 2009, 06:10 AM
markWilson markWilson is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 253 markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 16 h 24 m 19 sec
Reputation Power: 82
Quote:
Originally Posted by Shadow Wizard
post full error message and we'll see what's wrong.


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

Reply With Quote
  #25  
Old April 16th, 2009, 06:50 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
are you sure there's no On Error Resume Next in your code?

Reply With Quote
  #26  
Old April 18th, 2009, 01:28 AM
markWilson markWilson is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 253 markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 16 h 24 m 19 sec
Reputation Power: 82
Quote:
Originally Posted by Shadow Wizard
are you sure there's no On Error Resume Next in your code?


yes i m sure . there is no such on error resume next code
written .

Reply With Quote
  #27  
Old April 18th, 2009, 12:20 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
Quote:
Originally Posted by markWilson
yes i m sure . there is no such on error resume next code
written .
not error.... line in your code.

Reply With Quote
  #28  
Old April 20th, 2009, 12:40 AM
markWilson markWilson is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 253 markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 16 h 24 m 19 sec
Reputation Power: 82
Quote:
Originally Posted by Shadow Wizard
not error.... line in your code.



thanx it's solve. i got the output

thankx agian

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Creating zip files using classic ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek