Re: VBS error all of the sudden.

Brian Wolven <[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <[email protected]>
Steve wrote:
> I'd guess however the script finds the litestep.exe isn't available.  
> Like if it checks a registry entry or something.  Did you recently 
> change your Litestep installation?
> 
> Paul wrote:
>> I just started getting this error all of a sudden and I have not 
>> worked on this theme in a week or so.
>>
>> Script: C:\Litestep\ ...\weatherNotDLL.vbs
>> Line: 621
>> Char: 7
>> Error: The system cannot find the file specified
>> Code: 80070002
>> Source (null)
>>
>> The corresponding line in the VBS is this.
>>
>>       Retval = WSHShell.Run(updateExe & " !Reload"            ,0,true)
>>
>>
>> Strange thing is the weather still is reported correctly. Any ideas 
>> gent's?

updateExe should have the full path to litestep.exe, obtained like so:

'--- Find path of LS executable

  Set oWMIService = GetObject("winmgmts:" & _
 
"{impersonationLevel=impersonate}!\\.\root\cimv2")

  Set oProcess = oWMIService.ExecQuery _
                      ("Select * from Win32_Process Where Name = 
'litestep.exe'")

You could try inserting the following line just above the line where it 
throws that error, and see what it thinks is correct:

   msgbox updateExe

If you're using that watchfile technique to update your weather you 
don't need to do a !reload anyway - that's probably why your weather 
still updates correctly. It's redundant, but it works. =)


---------------------------------------------------------------------
    Can't Unsubscribe? Check http://desktopian.org/listunsub.html
        LS List Homepage: http://wuzzle.org/list/litestep.php
            Get the LS FAQ: http://lsfaq.shellfront.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.