PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 1.00 average.

2000 Server ASP and the WindowsShell

 
 
Kraig S
Guest
Posts: n/a
 
      24th Sep 2003
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


 
Reply With Quote
 
 
 
 
pp
Guest
Posts: n/a
 
      25th Sep 2003
hi

i think the problem is a problem with the right of the iiuser. you have to
add some properties. i think this is the user policy and something with
"interact with desktop" and try to give the iiuser admin rights.

georg

http://www.computerbazar.at

"Kraig S" <(E-Mail Removed)> wrote in message
news:%mhcb.1013$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Kraig S
Guest
Posts: n/a
 
      26th Sep 2003
Thanks for the suggestions!

I gave the IIUSR full admin rights, same. I also gave "Everyone" full rights
to the respective folders and files. Same problem I'm not to worried about
security at this point. I looked in the command console and opened up the
properties for the web server. I couldn't find anything to do with "interact
with desktop". I do remember seeing this before, but don't remember where!.

Some interesting finds: The error "The application failed to initialize
properly (0x000142). " occurs with:
1) Wscript.exe if I run wshell.run
"c:\inetpub\wwwroot\temp\approvals\zipit.vbs".
2) ntvdm.exe if I run wshell.run "c:\winnt\system32\command.com /c
c:\inetpub\wwwroot\temp\approvals\zipit.vbs" or just command.com without the
/c
3) cmd.exe if I run wshell.run "c:\winnt\system32\cmd.exe /c
c:\inetpub\wwwroot\temp\approvals\zipit.vbs" or just cmd.exe without the /c



"pp" <(E-Mail Removed)> wrote in message
news:uNd$(E-Mail Removed)...
> hi
>
> i think the problem is a problem with the right of the iiuser. you have to
> add some properties. i think this is the user policy and something with
> "interact with desktop" and try to give the iiuser admin rights.
>
> georg
>
> http://www.computerbazar.at
>
> "Kraig S" <(E-Mail Removed)> wrote in message
> news:%mhcb.1013$(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
georgp
Guest
Posts: n/a
 
      29th Sep 2003
HI

I have an simelar problem with a script which i want to execute from an asp
page

I still haven't found a solution. I think the problem is that if you execute
this and it wants to open a "dos" window the windows system says "NO",
becouse some rights or whatever is missing.

sorry for the poor english

georg


"Kraig S" <(E-Mail Removed)> wrote in message
news:tl%cb.647$(E-Mail Removed)...
> Thanks for the suggestions!
>
> I gave the IIUSR full admin rights, same. I also gave "Everyone" full

rights
> to the respective folders and files. Same problem I'm not to worried about
> security at this point. I looked in the command console and opened up the
> properties for the web server. I couldn't find anything to do with

"interact
> with desktop". I do remember seeing this before, but don't remember

where!.
>
> Some interesting finds: The error "The application failed to initialize
> properly (0x000142). " occurs with:
> 1) Wscript.exe if I run wshell.run
> "c:\inetpub\wwwroot\temp\approvals\zipit.vbs".
> 2) ntvdm.exe if I run wshell.run "c:\winnt\system32\command.com /c
> c:\inetpub\wwwroot\temp\approvals\zipit.vbs" or just command.com without

the
> /c
> 3) cmd.exe if I run wshell.run "c:\winnt\system32\cmd.exe /c
> c:\inetpub\wwwroot\temp\approvals\zipit.vbs" or just cmd.exe without the

/c
>
>
>
> "pp" <(E-Mail Removed)> wrote in message
> news:uNd$(E-Mail Removed)...
> > hi
> >
> > i think the problem is a problem with the right of the iiuser. you have

to
> > add some properties. i think this is the user policy and something with
> > "interact with desktop" and try to give the iiuser admin rights.
> >
> > georg
> >
> > http://www.computerbazar.at
> >
> > "Kraig S" <(E-Mail Removed)> wrote in message
> > news:%mhcb.1013$(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Kraig S
Guest
Posts: n/a
 
      29th Sep 2003
I looked up ntvdm.exe on google.com. One of the results pointed to a
Microsoft discussion about a 16bit app compatibilty problem with wscript.exe
and downloading a hotfix was available. Also the hotfix was in SP4, so I
upgraded to Service pack 4, and so far the problem has not re-occured. But
SP4 has introduced new problems on boot up... which I won't get in to here.


"georgp" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> HI
>
> I have an simelar problem with a script which i want to execute from an

asp
> page
>
> I still haven't found a solution. I think the problem is that if you

execute
> this and it wants to open a "dos" window the windows system says "NO",
> becouse some rights or whatever is missing.
>
> sorry for the poor english
>
> georg
>
>
> "Kraig S" <(E-Mail Removed)> wrote in message
> news:tl%cb.647$(E-Mail Removed)...
> > Thanks for the suggestions!
> >
> > I gave the IIUSR full admin rights, same. I also gave "Everyone" full

> rights
> > to the respective folders and files. Same problem I'm not to worried

about
> > security at this point. I looked in the command console and opened up

the
> > properties for the web server. I couldn't find anything to do with

> "interact
> > with desktop". I do remember seeing this before, but don't remember

> where!.
> >
> > Some interesting finds: The error "The application failed to initialize
> > properly (0x000142). " occurs with:
> > 1) Wscript.exe if I run wshell.run
> > "c:\inetpub\wwwroot\temp\approvals\zipit.vbs".
> > 2) ntvdm.exe if I run wshell.run "c:\winnt\system32\command.com /c
> > c:\inetpub\wwwroot\temp\approvals\zipit.vbs" or just command.com without

> the
> > /c
> > 3) cmd.exe if I run wshell.run "c:\winnt\system32\cmd.exe /c
> > c:\inetpub\wwwroot\temp\approvals\zipit.vbs" or just cmd.exe without

the
> /c
> >
> >
> >
> > "pp" <(E-Mail Removed)> wrote in message
> > news:uNd$(E-Mail Removed)...
> > > hi
> > >
> > > i think the problem is a problem with the right of the iiuser. you

have
> to
> > > add some properties. i think this is the user policy and something

with
> > > "interact with desktop" and try to give the iiuser admin rights.
> > >
> > > georg
> > >
> > > http://www.computerbazar.at
> > >
> > > "Kraig S" <(E-Mail Removed)> wrote in message
> > > news:%mhcb.1013$(E-Mail Removed)...
> > > > 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
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAX Hook Wnd message box then WindowsShell crashes Robert Marshall Windows XP General 3 29th May 2006 06:45 PM
2003 terminal server licences on 2000 AD domain which hosts 2000 licence server ? scott Microsoft Windows 2000 Networking 1 21st Jun 2005 03:07 PM
Downgrade Windows 2000 Advanced Server to 2000 Server Enrico Mantovani Microsoft Windows 2000 Advanced Server 3 5th Feb 2004 04:41 PM
Sql Server 2000 linked server to Access 97/2000 incompatability ErickR Microsoft Access 1 18th Sep 2003 03:00 PM
What's the difference between Small Business Server 2000 and Normal Windows Server 2000? Liang Haiwei Microsoft Windows 2000 Setup 1 8th Sep 2003 06:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 PM.