WshShell.Run don't run WHY ???
Author |
Message |
michael #1 / 11
|
 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 |
|
 |
Christoph Sperl #2 / 11
|
 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 |
|
 |
michael #3 / 11
|
 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 |
|
 |
Tyler Ganno #4 / 11
|
 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 |
|
 |
Janusz Czembo #5 / 11
|
 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 |
|
 |
Pascal HUYGH #6 / 11
|
 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 |
|
 |
Clarence Washington Jr #7 / 11
|
 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 |
|
 |
Erik Arvidsso #8 / 11
|
 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 |
|
 |
Larry Enghol #9 / 11
|
 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 |
|
 |
Larry Enghol #10 / 11
|
 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 |
|
|
|