Re: Failed to start a program by script
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Fri, 9 May 2008 07:49:34 +0200
"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.
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
I wonder what the point is to use the Task Scheduler to launch
a VB Script to launch start.exe to launch dlbridge.exe. It would
be far simpler to use the Task Scheduler to invoke this batch
file:
@echo off
cd /d c:\rdata
c:\swapplic\chsp\bin\dldbridge.exe
.
- References:
- Failed to start a program by script
- From: AndyMar
- Failed to start a program by script
- Prev by Date: Failed to start a program by script
- Next by Date: In VB Find First Available Unassigned Drive Letter
- Previous by thread: Failed to start a program by script
- Next by thread: Re: Failed to start a program by script
- Index(es):
Relevant Pages
|
|