Re: Error: Name redefined Code: 800A04119
- From: "Al Dunbar" <AlanNOSPAmDrub@xxxxxxxxxxx>
- Date: Sun, 11 Dec 2005 09:52:33 -0800
"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.
>>
>>
>
>
.
- Follow-Ups:
- Re: Error: Name redefined Code: 800A04119
- From: Marc B. Hankin
- Re: Error: Name redefined Code: 800A04119
- From: Michael Harris \(MVP\)
- Re: Error: Name redefined Code: 800A04119
- References:
- Error: Name redefined Code: 800A04119
- From: Marc B. Hankin
- Re: Error: Name redefined Code: 800A04119
- From: James Whitlow
- Re: Error: Name redefined Code: 800A04119
- From: Marc B. Hankin
- Error: Name redefined Code: 800A04119
- Prev by Date: Re: Output the Text Representation of a Distinguished Name ?
- Next by Date: Re: Add local user to Windows XP pro using vbscript
- Previous by thread: Re: Error: Name redefined Code: 800A04119
- Next by thread: Re: Error: Name redefined Code: 800A04119
- Index(es):
Relevant Pages
|