Tom
Mon May 12 07:40:48 CDT 2008
On May 11, 1:55 pm, "Al Dunbar" <AlanD...@hotmail.com.nospaam> wrote:
> "AndyMar" <Andy...@newsgroups.nospam> wrote in message
>
> news:21BBF945-40BF-402F-B4E3-C8616F3060FE@microsoft.com...
>
> > 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
Al,
I think you meant to say ...
... try this instead:
AppCmd = "start /d c:\rdata c:\swapplic\chsp\bin\dldbridge.exe"
(you left the Set in place ;-)
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/