valenock
Joined: 14 Sep 2004 Posts: 16
|
Posted: Thu Dec 16, 2004 12:26 am Post subject: Norton Antivirus autoprotection on/off |
|
|
Norton Antivirus Autoprotection likes to hang somewhere in your tray eating those CPU cycles and wasting your memory.
Meanwhile, there's no need to keep it up and running the whole day - it would be nice just to start it whenever it is needed - right when you have downloaded that_nice_program_from_the_internet_everyone_is_raving_about and want to check it out.
Here's my little script to turn norton autoprotect on/off.
Just copypaste it to your autohotkey.ini
| Code: |
; Norton Antivirus ========================================================================================
#n::
RunWait, %comspec% /c net stop navapsvc, , Hide
if ErrorLevel = 0
MsgBox,,Norton AntiVirus, Autoprotection successfully STOPPED !,10
else
{
RunWait, %comspec% /c net start navapsvc, , Hide
if ErrorLevel <> 0
{
MsgBox, Failed either start or stop Norton AntiVirus autoprotect`nIs service installed ?`nEror:%ErrorLevel%
return
}
MsgBox,,Norton AntiVirus, Autoprotection successfully STARTED !,10
}
return
|
|
|
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Thu Dec 16, 2004 12:36 am Post subject: |
|
|
| Meh. I never really noticed it wasting any cycles, and I've got 512mb of RAM, so I'll pass. Cool script though, I'm sure some will find it useful. |
|