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

Re: Failed to start a program by script by Pegasus

Pegasus
Fri May 09 00:49:34 CDT 2008


"AndyMar" <AndyMar@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.
>
> 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



Re: Failed to start a program by script by Al

Al
Sun May 11 12:55:01 CDT 2008


"AndyMar" <AndyMar@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



Re: Failed to start a program by script by Tom

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/

Re: Failed to start a program by script by Al

Al
Mon May 12 22:20:52 CDT 2008


"Tom Lavedas" <tglbatch@cox.net> wrote in message
news:1974d432-0125-4531-9358-90291f22e128@8g2000hse.googlegroups.com...
> 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 ;-)

Yes, I think I made my point that it is a very easily made and common
mistake!

/Al



Re: Failed to start a program by script by AndyMar

AndyMar
Tue May 13 01:55:00 CDT 2008


--
Andy Mar


"Al Dunbar" wrote:

>
> "AndyMar" <AndyMar@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
>
>
>

Re: Failed to start a program by script by AndyMar

AndyMar
Tue May 13 01:58:00 CDT 2008

Al,

Sorry that I didn't describe my problem clearly. The script works fine
after system reboot but starts not working after one month. I checked the
error code by certutil and got the following result:

c:\>certutil -error 8
0x8 (WIN32: 8) -- 8 (8)
Error message text: Not enough storage is available to process this command.
CertUtil: -error command completed successfully.

What limits am I reaching and how to solve it ? Please help.

--
Andy Mar


"Al Dunbar" wrote:

>
> "AndyMar" <AndyMar@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
>
>
>

Re: Failed to start a program by script by Al

Al
Wed May 14 00:03:09 CDT 2008

OK, so now post the code that you actually ran, as the one with "set appcmd
= someString" should choke on that particular line.

/Al

"AndyMar" <AndyMar@newsgroups.nospam> wrote in message
news:97382226-F0BF-4DC6-84F9-D9E6F68C8661@microsoft.com...
> Al,
>
> Sorry that I didn't describe my problem clearly. The script works fine
> after system reboot but starts not working after one month. I checked the
> error code by certutil and got the following result:
>
> c:\>certutil -error 8
> 0x8 (WIN32: 8) -- 8 (8)
> Error message text: Not enough storage is available to process this
> command.
> CertUtil: -error command completed successfully.
>
> What limits am I reaching and how to solve it ? Please help.
>
> --
> Andy Mar
>
>
> "Al Dunbar" wrote:
>
>>
>> "AndyMar" <AndyMar@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
>>
>>
>>



Re: Failed to start a program by script by AndyMar

AndyMar
Tue May 20 02:07:00 CDT 2008

Hi Al,

The cood is as follows:

----------------
Set oProcess = GetObject("winmgmts:\\" & sName & "\root\cimv2:Win32_Process")
Dim sAppCmd
oAppCmd = "c:\\swapplic\\chsp\\bin\\dldrbridge.exe"
ErrResult = oProcess.Create(sAppCmd,"c:\rdata",Null,iID)
----------------

What is meaning of ErrResult=8? Please Help.

Andy Mar


"Al Dunbar" wrote:

> OK, so now post the code that you actually ran, as the one with "set appcmd
> = someString" should choke on that particular line.
>
> /Al
>
> "AndyMar" <AndyMar@newsgroups.nospam> wrote in message
> news:97382226-F0BF-4DC6-84F9-D9E6F68C8661@microsoft.com...
> > Al,
> >
> > Sorry that I didn't describe my problem clearly. The script works fine
> > after system reboot but starts not working after one month. I checked the
> > error code by certutil and got the following result:
> >
> > c:\>certutil -error 8
> > 0x8 (WIN32: 8) -- 8 (8)
> > Error message text: Not enough storage is available to process this
> > command.
> > CertUtil: -error command completed successfully.
> >
> > What limits am I reaching and how to solve it ? Please help.
> >
> > --
> > Andy Mar
> >
> >
> > "Al Dunbar" wrote:
> >
> >>
> >> "AndyMar" <AndyMar@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
> >>
> >>
> >>
>
>
>

Re: Failed to start a program by script by Al

Al
Wed May 21 17:35:42 CDT 2008

Have you tried it with:

oAppCmd = "c:\swapplic\chsp\bin\dldrbridge.exe"

/Al

"AndyMar" <AndyMar@newsgroups.nospam> wrote in message
news:845C9013-4EFD-4725-9F4A-501EC5ECC2E7@microsoft.com...
> Hi Al,
>
> The cood is as follows:
>
> ----------------
> Set oProcess = GetObject("winmgmts:\\" & sName &
> "\root\cimv2:Win32_Process")
> Dim sAppCmd
> oAppCmd = "c:\\swapplic\\chsp\\bin\\dldrbridge.exe"
> ErrResult = oProcess.Create(sAppCmd,"c:\rdata",Null,iID)
> ----------------
>
> What is meaning of ErrResult=8? Please Help.
>
> Andy Mar
>
>
> "Al Dunbar" wrote:
>
>> OK, so now post the code that you actually ran, as the one with "set
>> appcmd
>> = someString" should choke on that particular line.
>>
>> /Al
>>
>> "AndyMar" <AndyMar@newsgroups.nospam> wrote in message
>> news:97382226-F0BF-4DC6-84F9-D9E6F68C8661@microsoft.com...
>> > Al,
>> >
>> > Sorry that I didn't describe my problem clearly. The script works fine
>> > after system reboot but starts not working after one month. I checked
>> > the
>> > error code by certutil and got the following result:
>> >
>> > c:\>certutil -error 8
>> > 0x8 (WIN32: 8) -- 8 (8)
>> > Error message text: Not enough storage is available to process this
>> > command.
>> > CertUtil: -error command completed successfully.
>> >
>> > What limits am I reaching and how to solve it ? Please help.
>> >
>> > --
>> > Andy Mar
>> >
>> >
>> > "Al Dunbar" wrote:
>> >
>> >>
>> >> "AndyMar" <AndyMar@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
>> >>
>> >>
>> >>
>>
>>
>>