Re: Failed to start a program by script
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 May 2008 11:55:01 -0600
"AndyMar" <AndyMar@xxxxxxxxxxxxxxxxx> wrote in message
news:21BBF945-40BF-402F-B4E3-C8616F3060FE@xxxxxxxxxxxxxxxx
Hi,
I used the following script lines to start a program by a schedule batch
program:
Dim AppCmd
Set AppCmd = "start /d c:\rdata c:\swapplic\chsp\bin\dldbridge.exe"
Dim oProcesses, ErrResult, iID
Set oProcess = GetObject("winmgmts:\\" & sName &
"\root\cimv2:Win32_Process")
ErrResult =
oProcess.Create(WScript.Arguments.Named("AppCmd"),Null,Null,iID)
However, the script failed with ErrResult=8.
the problem might be in this statement:
Set AppCmd = "start /d c:\rdata c:\swapplic\chsp\bin\dldbridge.exe"
perhaps you intended to assign a string to the variable, as opposed to an
object reference. If so try this instead:
Set AppCmd = "start /d c:\rdata c:\swapplic\chsp\bin\dldbridge.exe"
/Al
I recently increase the memory from 1G to 2G and sill have 10G free space
in
hard disk. What is going wrong? Please Help!
--
Andy Mar
.
- Follow-Ups:
- Re: Failed to start a program by script
- From: AndyMar
- Re: Failed to start a program by script
- From: AndyMar
- Re: Failed to start a program by script
- From: Tom Lavedas
- Re: Failed to start a program by script
- References:
- Failed to start a program by script
- From: AndyMar
- Failed to start a program by script
- Prev by Date: Re: In VB Find First Available Unassigned Drive Letter
- Next by Date: Re: In VB Find First Available Unassigned Drive Letter
- Previous by thread: Re: Failed to start a program by script
- Next by thread: Re: Failed to start a program by script
- Index(es):
Relevant Pages
|
|