Re: Error: Name redefined Code: 800A04119

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Marc B. Hankin" <mbh2010@xxxxxxx> wrote in message
news:eRDRKqb$FHA.2784@xxxxxxxxxxxxxxxxxxxxxxx
> Dear James:
> 1. Thank you. Much appreciated. 2.Where can I find info that
> will help me to understand the solution you gave me?

The standard vbscript documents plus a general understanding of programming
concepts should be enough for one to deduce that two global objects (i.e. a
global variable and a function) cannot have the same name.

> 3. Where can I find info to help me figure out how to kill processes
> using this script, that the script did not kill, but that I can kill in
> Task manager, by right clicking on the process, and selecting end process
> tree?

You just answered your own question - unless you want to kill the task from
a script rather than from task manager.

Sorry, I don't know the answer to this question. But I have a question about
your code. What is the function of the do while loop in the main program? to
me, it looks as if the equivalent code done without a loop would be:

sProcess2Kill "'passkeep.exe'"
sProcess2Kill "'ATKKBService.exe'"
sProcess2Kill "'awhost.exe'"
sProcess2Kill "'awhost.exe'"
sProcess2Kill "'awhost.exe'"
sProcess2Kill "'awhost.exe'"
sProcess2Kill "'awhost.exe'"
' etc...

Is there any reason why you are attempting to kill the awhost.exe process so
many times?

/Al


>
> Thanks again,
>
> Marceepoo
>
>
> "James Whitlow" <jwhitlow@xxxxxxxxxx> wrote in message
> news:uSC361T$FHA.3676@xxxxxxxxxxxxxxxxxxxxxxx
>> "Marc B. Hankin" <marc@xxxxxxxxxxxxxx> wrote in message
>> news:ugrRnJT$FHA.3852@xxxxxxxxxxxxxxxxxxxxxxx
>>> The script below generates the following error message:
>>> Windows Script Host
>>> Script: [full name, including path]
>>> Line: 37
>>> Char: 10
>>> Error: Name redefined
>>> Code: 800A04119
>>> Source: Microsoft VBScript compilation error
>>>
>>> I can't figure out what's wrong, or how to fix it, or where to learn
>>> about
>>> the problem.
>>> Any ideas would be much appreciated.
>>>
>>> p.s. Here's the script.....
>>>
>>> Dim sProcess2Kill, CondemnedProcess
>>> ...snip...
>>> Function sProcess2Kill(CondemnedProcess) '= strProcessKill
>>
>> The problem is that you are declaring a function on line #37 using the
>> same name as variable you dimensioned on line #9. If you simply remove
>> the
>> variable dimensioning for 'sProcess2Kill' from line #9, you should be
>> good
>> to go.
>>
>>
>
>


.



Relevant Pages

  • Re: Robocopy replication
    ... are you exiting the script? ... >> Can you open the sessions on the servers to see if the open sessions are ... If they are you could kill the session as part of the ... > well they are permanently resaident in Task Manager as I'd expect from a ...
    (microsoft.public.windows.server.general)
  • Re: How to kill a logged in user?
    ... > in your script. ... >> Anyone know what packages are on the rescue CD? ... How to kill a logged in user? ... Also on my TODO list is a mailing list export/import modul, from which we can convert mail threads into FAQs. ...
    (Fedora)
  • RE: How to kill a logged in user?
    ... How to kill a logged in user? ... information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, ... > in your script. ... from which we can convert mail threads into FAQs. ...
    (Fedora)
  • Re: setrlimit() extension suggestion
    ... but there are hundreds of students using ... to kill them off based on wallclock time. ... and they can be killed off by the script in a somewhat reliable way. ... Note that such a script would have a very slight exposure to killing the wrong ...
    (comp.os.linux.development.system)
  • Re: Adjusting a services "CanStop" on the fly?
    ... I posted this question to the .Net framework, but I will repost in win32 ... >> who is trying to kill the service. ... >> (Via Task Manager) on the fly? ... I know if OnStart throws an exception the starting of the ...
    (microsoft.public.dotnet.languages.vb)