Help - Search - Members - Calendar
Full Version: How to launch Network Connection and Anti-Virus
MSFN Forums > Software, Hardware, Media and Games Central > Networks and the Internet

   
Google Internet Forums Unattended CD/DVD Guide
Baldyr
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.)
eyeball
Download "Devcon" and use the following (in a batch file) to get you started

CODE
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 smile.gif

Hope this helps
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.