K
Kraig S
Hello,
Please reply to this post..
I'm having a problem with 2000's shell and wzzip.exe, (Winzip's command line
zip application), "The application
failed to initialize properly (0x000142). Click on OK to
terminate the application" when running in a 2000 Server.
If I run the shell script by itself in a file called
zipit.vbs, it runs fine. It opens a DOS window, runs the
application, the progress dots appear and the window
closes when it's done. I look at the page where the files
and folders are and the zip file is there. If I run it the
script file zipit.vbs or the command line below from an
ASP page, I get the above error. No DOS window appears
either.
Wzzip is a command line zip program from the makers of
WinZip.
Here is the script:
'Function makeZip()
Dim WshShell
Set WshShell = CreateObject("wscript.shell")
WshShell.Run """c:\program files\winzip\wzzip.exe"" -
r -p -e0 -ybc c:\inetpub\wwwroot\temp\approvals\test.zip
c:\inetpub\wwwroot\temp\approvals\*.*"
Set wshShell=Nothing
'End Function
I remmed out the Function part because that is from the
ASP page. I removed "Server." from Set WshShell =
CreateObject("wscript.shell") because the shell scripting
engine doesn't seem to like that. In the ASP page it reads
Set WshShell = Server.CreateObject("wscript.shell").
I tried running WshShell.Run """cmd /c c:\program
files\winzip\wzzip.exe"" -r -p -e0 -ybc
c:\inetpub\wwwroot\temp\approvals\test.zip
c:\inetpub\wwwroot\temp\approvals\*.*" and
WshShell.Run """start c:\program files\winzip\wzzip.exe"" -
r -p -e0 -ybc c:\inetpub\wwwroot\temp\approvals\test.zip
c:\inetpub\wwwroot\temp\approvals\*.*" in the shell
script. No zip files were created with with either one.
However, using cmd /c in the ASP page creates the error
just as without it. Start does nothing in the ASP page
too.
The parameters in order are, (-r)=Include subfolders, (-p)
=store folder names, (-e0)= no compression, (-ybc)
=Automatic, non-interactive ("batch" mode) handling of
prompts. If a prompt is issued, the operation terminate
with error level 250. Use the optional c suffix to
automatically continue with a "yes", "ok" response instead
of terminating.
What would be the recommended procedure for an ASP page?
Kraig
Please reply to this post..
I'm having a problem with 2000's shell and wzzip.exe, (Winzip's command line
zip application), "The application
failed to initialize properly (0x000142). Click on OK to
terminate the application" when running in a 2000 Server.
If I run the shell script by itself in a file called
zipit.vbs, it runs fine. It opens a DOS window, runs the
application, the progress dots appear and the window
closes when it's done. I look at the page where the files
and folders are and the zip file is there. If I run it the
script file zipit.vbs or the command line below from an
ASP page, I get the above error. No DOS window appears
either.
Wzzip is a command line zip program from the makers of
WinZip.
Here is the script:
'Function makeZip()
Dim WshShell
Set WshShell = CreateObject("wscript.shell")
WshShell.Run """c:\program files\winzip\wzzip.exe"" -
r -p -e0 -ybc c:\inetpub\wwwroot\temp\approvals\test.zip
c:\inetpub\wwwroot\temp\approvals\*.*"
Set wshShell=Nothing
'End Function
I remmed out the Function part because that is from the
ASP page. I removed "Server." from Set WshShell =
CreateObject("wscript.shell") because the shell scripting
engine doesn't seem to like that. In the ASP page it reads
Set WshShell = Server.CreateObject("wscript.shell").
I tried running WshShell.Run """cmd /c c:\program
files\winzip\wzzip.exe"" -r -p -e0 -ybc
c:\inetpub\wwwroot\temp\approvals\test.zip
c:\inetpub\wwwroot\temp\approvals\*.*" and
WshShell.Run """start c:\program files\winzip\wzzip.exe"" -
r -p -e0 -ybc c:\inetpub\wwwroot\temp\approvals\test.zip
c:\inetpub\wwwroot\temp\approvals\*.*" in the shell
script. No zip files were created with with either one.
However, using cmd /c in the ASP page creates the error
just as without it. Start does nothing in the ASP page
too.
The parameters in order are, (-r)=Include subfolders, (-p)
=store folder names, (-e0)= no compression, (-ybc)
=Automatic, non-interactive ("batch" mode) handling of
prompts. If a prompt is issued, the operation terminate
with error level 250. Use the optional c suffix to
automatically continue with a "yes", "ok" response instead
of terminating.
What would be the recommended procedure for an ASP page?
Kraig