Jump to content

Recommended Posts

Posted

So I have figured out how not to start-up avast anti-virus when I login to Windows (XP Home). I have also placed a shortcut to my Network Connection in the Start menu. Now I have the option of having an Internet connection or not when I login, but this means I have to remember to close the network connection every time I logout (otherwise it will automatically be activated on logon). Not very convenient at all. I'm guessing there is a much better way to do it, using batch files and whatnot.

The ideal would be to have one batch file (or whatever) that activates my network connection and starts up avast anti-virus. And another one that closes the network connection (and anti-virus if possible).

This way I could place a pair of shortcut to these batch files on my taskbar or something, and have the icons be an on and an off button. The important thing would be that avast also ignites when you click the "on" button. And that both the network connection and anti-virus be turned off when I login (thus avoiding the waiting time involved when avast launches and Windows connects online).

Has someone tried anything like this or has a quick and easy way to make it happen? Maybe there is some software available that does just that? (I'm pretty much computer alliterate so you'll have to bare with me.)


Posted

Download "Devcon" and use the following (in a batch file) to get you started

net start "avast service name1"
net start "avast service name2"
net start "avast service name3"
devcon disable "hardware ID"

where hardware ID is found in device manager under network adapters and service name is the name of the avast services. This is the "start" script.

change start for stop and disable for enable and you have your stop script :)

Hope this helps

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...