![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||