Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: Failed to start a program by script

Reply
 
Old 05-20-2008   #1 (permalink)
AndyMar


 
 

Re: Failed to start a program by script

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:
Quote:

> 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@xxxxxx> wrote in message
> news:97382226-F0BF-4DC6-84F9-D9E6F68C8661@xxxxxx
Quote:

> > 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:
> >
Quote:

> >>
> >> "AndyMar" <AndyMar@xxxxxx> wrote in message
> >> news:21BBF945-40BF-402F-B4E3-C8616F3060FE@xxxxxx
> >> > 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
> >>
> >>
> >>
>
>
>

My System SpecsSystem Spec
Old 05-21-2008   #2 (permalink)
Al Dunbar


 
 

Re: Failed to start a program by script

Have you tried it with:

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

/Al

"AndyMar" <AndyMar@xxxxxx> wrote in message
news:845C9013-4EFD-4725-9F4A-501EC5ECC2E7@xxxxxx
Quote:

> 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:
>
Quote:

>> 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@xxxxxx> wrote in message
>> news:97382226-F0BF-4DC6-84F9-D9E6F68C8661@xxxxxx
Quote:

>> > 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@xxxxxx> wrote in message
>> >> news:21BBF945-40BF-402F-B4E3-C8616F3060FE@xxxxxx
>> >> > 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
>> >>
>> >>
>> >>
>>
>>
>>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
VIsta The following boot-start or system-start driver(s) failed to load: Drivers
Script to delay launch of program(s) VB Script
Permission needed to start a specific program in the Start Menu Vista installation & setup
Can start program from the desktop, but not from the start menu Vista General
NIC failed to start - HELP Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46