WshShell.Run don't run WHY ??? 
Author Message
 WshShell.Run don't run WHY ???

I use the
following
commands
and they
work fine.

Set
WshShell =
Wscript.CreateObject("Wscript.Shell")
WshShell.Run
"c:\adc\program\unzip.bat",1,true
WshShell.Run
"c:\adc\program\pkunzip.exe",1,true
The 'True'
tells the
process to
wait for
the
completion
of the dos
run
before
continuing
to execute
the reset
of the
script.

Janusz
Czembor

Quote:

> plese help me !!!
> I try to start an external myScript.exe in an asp program. why this code
> don't run ?
> <%
> Set WshShell = CreateObject("WScript.Shell")
> WshShell.Run "myScript.exe",2,1
> %>
> I get the folowing error

> Laufzeitfehler in Microsoft VBScript-Fehler '800a01ad'
> ActiveX-Komponenten kann kein Objekt erstellen: 'CreateObject'
> or in english
> runtime error in Microsoft VBScript-Fehler '800a01ad
> ActiveX can't create the object : 'CreateObject'





Sun, 21 Jan 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
Hi Jan,

ich antworte Dir einfach mal auf Deutsch, weil Du eine deutsche
Fehlermeldung bekommen und auch eine deutsche  e-Mail-Adresse hast:

1. So wird es funktionieren:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "myScript.exe",2,1

2. Allerdings m?te auch Dein Script funktionieren, wenn Du die aktuellen
Script-Engine (3.1) von Microsoft hast. Die kannst Du unter:

http://www.microsoft.com/scripting/

Windows Scripting Host / Downloads / Install Microsoft Script Engines
Version 3.1

herunterladen (Hier findest Du auch viele andere, interessante Sachen ber
den WSH).

Ich hoffe Dir geholfen zu haben.

christoph.


Quote:
>plese help me !!!
>I try to start an external myScript.exe in an asp program. why this code
>don't run ?
><%
>Set WshShell = CreateObject("WScript.Shell")
>WshShell.Run "myScript.exe",2,1
>%>
>I get the folowing error

>Laufzeitfehler in Microsoft VBScript-Fehler '800a01ad'
>ActiveX-Komponenten kann kein Objekt erstellen: 'CreateObject'
>or in english
>runtime error in Microsoft VBScript-Fehler '800a01ad
>ActiveX can't create the object : 'CreateObject'





Mon, 22 Jan 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
Correction
on the
word wrap

I use the
following
commands
and they
work fine.

Set
WshShell =
Wscript.CreateObject("Wscript.Shell")
WshShell.Run
"c:\adc\program\unzip.bat",1,true
WshShell.Run
"c:\adc\program\pkunzip.exe",1,true

The 'True'
tells the
process to
wait for
the
completion
of the dos
run before
continuing
to execute
the reset
of the
script. I
using this
on Win95
machine.

michaels

Quote:

> I use the
> following
> commands
> and they
> work fine.

> Set
> WshShell =
> Wscript.CreateObject("Wscript.Shell")
> WshShell.Run
> "c:\adc\program\unzip.bat",1,true
> WshShell.Run
> "c:\adc\program\pkunzip.exe",1,true
> The 'True'
> tells the
> process to
> wait for
> the
> completion
> of the dos
> run
> before
> continuing
> to execute
> the reset
> of the
> script.

> Janusz
> Czembor

> > plese help me !!!
> > I try to start an external myScript.exe in an asp program. why this code
> > don't run ?
> > <%
> > Set WshShell = CreateObject("WScript.Shell")
> > WshShell.Run "myScript.exe",2,1
> > %>
> > I get the folowing error

> > Laufzeitfehler in Microsoft VBScript-Fehler '800a01ad'
> > ActiveX-Komponenten kann kein Objekt erstellen: 'CreateObject'
> > or in english
> > runtime error in Microsoft VBScript-Fehler '800a01ad
> > ActiveX can't create the object : 'CreateObject'





Tue, 23 Jan 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
I had a problem like that when I was trying to run a command with several
command line arguments. If this is something that runs inside of cmd.exe, try
doing this:
wshShell.Run "cmd /c myapp.exe /arg1 /arg2 /arg3 ...", 1, TRUE
Quote:

> Hi Jan,

> ich antworte Dir einfach mal auf Deutsch, weil Du eine deutsche
> Fehlermeldung bekommen und auch eine deutsche  e-Mail-Adresse hast:

> 1. So wird es funktionieren:

> Set WshShell = WScript.CreateObject("WScript.Shell")
> WshShell.Run "myScript.exe",2,1

> 2. Allerdings m?te auch Dein Script funktionieren, wenn Du die aktuellen
> Script-Engine (3.1) von Microsoft hast. Die kannst Du unter:

> http://www.microsoft.com/scripting/

> Windows Scripting Host / Downloads / Install Microsoft Script Engines
> Version 3.1

> herunterladen (Hier findest Du auch viele andere, interessante Sachen ber
> den WSH).

> Ich hoffe Dir geholfen zu haben.

> christoph.


> >plese help me !!!
> >I try to start an external myScript.exe in an asp program. why this code
> >don't run ?
> ><%
> >Set WshShell = CreateObject("WScript.Shell")
> >WshShell.Run "myScript.exe",2,1
> >%>
> >I get the folowing error

> >Laufzeitfehler in Microsoft VBScript-Fehler '800a01ad'
> >ActiveX-Komponenten kann kein Objekt erstellen: 'CreateObject'
> >or in english
> >runtime error in Microsoft VBScript-Fehler '800a01ad
> >ActiveX can't create the object : 'CreateObject'





Sun, 28 Jan 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
Thanks, but I have still the problem, but now with a new error
Microsoft VBScript runtime -Fehler '800a01a8'
Object required: 'Wscript'
/arcis2web/cz3.asp, Zeile 31

my source code is:
Dim WshShell
Set WshShell = Wscript.CreateObject("Wscript.Shell")
wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

where is the proble ??????

by the way; the adress > http://www.microsoft.com/scripting/  is not actual

Tyler Gannon schrieb:

Quote:
> I had a problem like that when I was trying to run a command with several
> command line arguments. If this is something that runs inside of cmd.exe, try
> doing this:
> wshShell.Run "cmd /c myapp.exe /arg1 /arg2 /arg3 ...", 1, TRUE



Mon, 29 Jan 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
WSH is maybe very case sensitive.
Try  WScript  instead of  Wscript.
Hope this help
Pascal.


Quote:
>Thanks, but I have still the problem, but now with a new error
>Microsoft VBScript runtime -Fehler '800a01a8'
>Object required: 'Wscript'
>/arcis2web/cz3.asp, Zeile 31

>my source code is:
>Dim WshShell
>Set WshShell = Wscript.CreateObject("Wscript.Shell")
>wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
>/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

>where is the proble ??????



Thu, 01 Feb 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???

Quote:
>Set WshShell = Wscript.CreateObject("Wscript.Shell")
>wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
>/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

Set WshShell = Wscript.CreateObject("Wscript.Shell")
wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

You have some run on stuff happening here. You need a space behind cmd /d
Maybe this should read

wshShell.Run "cmd /d c:\comfo\ARCIS\savedoce.exe /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

--
Win32 bit scripting, lots of sample scripts, downloads,
referrence files, and technical support via an online discussion forum.

Check it out
http://sams.prohosting.com/cwashington

Quote:

>WSH is maybe very case sensitive.
>Try  WScript  instead of  Wscript.
>Hope this help
>Pascal.


>>Thanks, but I have still the problem, but now with a new error
>>Microsoft VBScript runtime -Fehler '800a01a8'
>>Object required: 'Wscript'
>>/arcis2web/cz3.asp, Zeile 31

>>my source code is:
>>Dim WshShell
>>Set WshShell = Wscript.CreateObject("Wscript.Shell")
>>wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
>>/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

>>where is the proble ??????



Thu, 01 Feb 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???

I see one of the most common problem here. In strings you HAVE to write \\ to represent \ because the first character after a \ is a special charcacter
Erik Arvidsson (ICQ: 2578925) Dedicated DHTML Programmer at...

--------------------------------------------------------------------------------
WebFX

  >Set WshShell = Wscript.CreateObject("Wscript.Shell")
  >wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
  >/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

  Set WshShell = Wscript.CreateObject("Wscript.Shell")
  wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

  You have some run on stuff happening here. You need a space behind cmd /d
  Maybe this should read

  wshShell.Run "cmd /d c:\comfo\ARCIS\savedoce.exe /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

  --
  Win32 bit scripting, lots of sample scripts, downloads,
  referrence files, and technical support via an online discussion forum.

  Check it out
  http://sams.prohosting.com/cwashington


  >WSH is maybe very case sensitive.
  >Try  WScript  instead of  Wscript.
  >Hope this help
  >Pascal.
  >

  >>Thanks, but I have still the problem, but now with a new error
  >>Microsoft VBScript runtime -Fehler '800a01a8'
  >>Object required: 'Wscript'
  >>/arcis2web/cz3.asp, Zeile 31
  >>
  >>my source code is:
  >>Dim WshShell
  >>Set WshShell = Wscript.CreateObject("Wscript.Shell")
  >>wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
  >>/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE
  >>
  >>where is the proble ??????
  >
  >
  >



Fri, 02 Feb 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
Change
Set WshShell = Wscript.CreateObject("Wscript.Shell")
to
Set WshShell = CreateObject("Wscript.Shell")
                                                        Larry
Quote:

> Thanks, but I have still the problem, but now with a new error
> Microsoft VBScript runtime -Fehler '800a01a8'
> Object required: 'Wscript'
> /arcis2web/cz3.asp, Zeile 31

> my source code is:
> Dim WshShell
> Set WshShell = Wscript.CreateObject("Wscript.Shell")
> wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
> /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

> where is the proble ??????

> by the way; the adress > http://www.microsoft.com/scripting/  is not actual

> Tyler Gannon schrieb:

> > I had a problem like that when I was trying to run a command with several
> > command line arguments. If this is something that runs inside of cmd.exe, try
> > doing this:
> > wshShell.Run "cmd /c myapp.exe /arg1 /arg2 /arg3 ...", 1, TRUE



Sat, 03 Feb 2001 03:00:00 GMT  
 WshShell.Run don't run WHY ???
In VBScript \ is not a special character.

In JScript \ is the escape character, so in a JScript program you need
to use \\ if you want a literal \.

When parsing filenames on Windows, extraneous \ characters don't hurt,
so even though doubling them in a VBScript program is ugly and doesn't
make sense, in some cases the program will still work.
                                                        Larry

Quote:

> I see one of the most common problem here. In strings you HAVE to
> write \\ to represent \ because the first character after a \ is a
> special charcacter

> Erik Arvidsson (ICQ: 2578925) Dedicated DHTML Programmer at...

> ----------------------------------------------------------------------
> WebFX



>      >Set WshShell = Wscript.CreateObject("Wscript.Shell")
>      >wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
>      >/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

>      Set WshShell = Wscript.CreateObject("Wscript.Shell")
>      wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
>      /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

>      You have some run on stuff happening here. You need a space
>      behind cmd /d
>      Maybe this should read

>      wshShell.Run "cmd /d c:\comfo\ARCIS\savedoce.exe
>      /d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

>      --
>      Win32 bit scripting, lots of sample scripts, downloads,
>      referrence files, and technical support via an online
>      discussion forum.

>      Check it out
>      http://sams.prohosting.com/cwashington


>      >WSH is maybe very case sensitive.
>      >Try  WScript  instead of  Wscript.
>      >Hope this help
>      >Pascal.

>      >Janusz Czembor a crit dans le message

>      >>Thanks, but I have still the problem, but now with a new
>      error
>      >>Microsoft VBScript runtime -Fehler '800a01a8'
>      >>Object required: 'Wscript'
>      >>/arcis2web/cz3.asp, Zeile 31

>      >>my source code is:
>      >>Dim WshShell
>      >>Set WshShell = Wscript.CreateObject("Wscript.Shell")
>      >>wshShell.Run "cmd /d:\comfo\ARCIS\savedoce.exe
>      >>/d:\InetPub\wwwroot\SaveDocEx\input\49.ueb", 1, TRUE

>      >>where is the proble ??????



Sat, 03 Feb 2001 03:00:00 GMT  
 
 [ 11 post ] 

 Relevant Pages 

1. wshshell.run: I can't run when there is a space in the path

2. Batch file won't run with WshShell.run

3. Running COMMAND.COM with WshShell.Run

4. WScript don't run under Win95 ???

5. Script don't run in Internet Explore

6. Running shortcut don't work on 2000?

7. WScript don't run under Win95 ???

8. HTA Files Don't Run Anymore

9. Pls Help-Can't get wshshell.run to work

10. wshell.run arguments don't work

11. Functions don't run in server side javascript

12. WshShell.Run vs WshShell.Exec

 

 
Powered by phpBB® Forum Software