Re: Failed to start a program by script




"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


.



Relevant Pages

  • Re: Failed to start a program by script
    ... Andy Mar ... I used the following script lines to start a program by a schedule batch ... Dim AppCmd ... Dim oProcesses, ErrResult, iID ...
    (microsoft.public.scripting.vbscript)
  • Re: Failed to start a program by script
    ... I used the following script lines to start a program by a schedule batch ... Dim AppCmd ... Dim oProcesses, ErrResult, iID ...
    (microsoft.public.scripting.vbscript)
  • Failed to start a program by script
    ... I used the following script lines to start a program by a schedule batch ... Dim AppCmd ... Dim oProcesses, ErrResult, iID ...
    (microsoft.public.scripting.vbscript)
  • Re: Failed to start a program by script
    ... OK, so now post the code that you actually ran, as the one with "set appcmd ... I used the following script lines to start a program by a schedule ... Dim AppCmd ... Dim oProcesses, ErrResult, iID ...
    (microsoft.public.scripting.vbscript)
  • Re: Ntbackup seems not to start properly 30 to 50% of the time.
    ... Ntbackup seems not to start properly 30 to 50% of the time. ... I have a simple script running from scheduler. ... I built a small test server and using AT instead of Windows Scheduler, ... It would appear that a re-boot allows the backup to complete once. ...
    (microsoft.public.windows.server.general)