HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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:
  #1  
Old February 15th, 2002, 05:59 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Running a .bat file to zip files using pkzipc from inside ASP

Originally posted by : Sanjib Mohapatro (san1304@yahoo.com)I need to zip a text file with a password.I am using pkzipc for command line execution. The following command I put it in a batch file emailzip.batpkzipc -add C:CISprojMSDN est.zip -pass=baseball C:CISprojMSDNemail.txtworks fine from the command line and executing the batch file creates the zip file. However, running the ASP code from web server does not create the zip file. I can execute a copy command included in a batch file from ASP to copy files.Here is the codeDim objShellDim retset objShell = server.createobject("WScript.Shell")ret = ObjShell.Run"C:CISprojMSDNemailzip.bat",1,true)I think there might be some kind of security thing with my web server which doesn't allow me to create the Zip file.Please advise.Thanks,Sanjib

Reply With Quote
  #2  
Old September 5th, 2002, 06:25 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : Fred (lfred@uol.com.br)Hi SanjibI've been having the same problem but in my case I have to execut a batch file who copy files from one server to another.Im using asp with the WScript.Shell, when I execute the asp file it works with no problem, no error, but when I check to see if the file were copied I realized that it doesnt run my batch file.Do you have any idea about ?PS: Have you get a solution for your trouble------------Sanjib Mohapatro at 2/15/2002 2:59:07 PMI need to zip a text file with a password.I am using pkzipc for command line execution. The following command I put it in a batch file emailzip.batpkzipc -add C:CISprojMSDN est.zip -pass=baseball C:CISprojMSDNemail.txtworks fine from the command line and executing the batch file creates the zip file. However, running the ASP code from web server does not create the zip file. I can execute a copy command included in a batch file from ASP to copy files.Here is the codeDim objShellDim retset objShell = server.createobject("WScript.Shell")ret = ObjShell.Run"C:CISprojMSDNemailzip.bat",1,true)I think there might be some kind of security thing with my web server which doesn't allow me to create the Zip file.Please advise.Thanks,Sanjib

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Running a .bat file to zip files using pkzipc from inside 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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT