|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
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
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Running a .bat file to zip files using pkzipc from inside ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|