Link to home
Start Free TrialLog in
Avatar of brianrandy
brianrandy

asked on

generate zip using wshell

Trying to generate a zip file using wscript.shell with winzip

I keep getting errors, either "WshShell.Exec Error '80070005' Access is denied. "  or "WshShell.Exec error '8007007b' The filename, directory name, or volume label syntax is incorrect. "

Here is my code:

<%@ language=javascript %>
<%
var Shell = Server.CreateObject("WScript.Shell");

var String= "H:\Inetpub\wwwroot\MAINTEMP\wzzip -a H:\Inetpub\wwwroot\MAINTEMP\test.zip H:\Inetpub\wwwroot\MAINTEMP\test.html";

Shell.Exec(String);
%>

I believe that winzip is setup correctly.  I can run the string from the command line.  I will award more points if neccessary.

Thanks.


ASKER CERTIFIED SOLUTION
Avatar of jitganguly
jitganguly

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial