Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close AVG

Status
Not open for further replies.

EssKayKay

Technical User
Mar 16, 2008
6
US
I have a couple small routines to temporarily stop and start AVG. My start code is:
"regsvr32.exe C:\Progra~1\Grisoft\AVG7/avgoff2k.dll"
which works great. I have one question though. Is it possible when running the code, to have AVG restart with out the RegSrv32 window popping up and saying …succeeded?

The reason for this is incase I forget to restart AVG after stopping it, I want to schedule my AVG_ON batch file to run every night. However, I don’t want to have to close the message box every morning.

Thanks,
SKK



 
First of all, if you want to start/stop AVG without using their user interface, you should stop the services associated with AVG. This can be done in a batch file ("NET STOP <<servicename>>" and "NET START <<servicename>>") or using WMI.

Unregistering avgoff2k.dll will only disable AVG's Office 2000+ plug-in. What exactly are you trying to achieve???
 
Ahh, I thought the
"regsvr32.exe C:\Progra~1\Grisoft\AVG7/avgoff2k.dll" routine completely disabled AVG. If it only affects Office, that's less of an issue.

Why I ask is, perodically, I create MS Access routines. In testing, I often close and reopen Access. With AVG running, it takes a considerably time to open. If I disable the Office plug-in it opens instantly. What I had in mind was scheduling a batch file to kickoff each night to re-enable AVG (just in case I forgot to do so manually after disenabling it). However, with my batch file, each time it runs (i.e., every morning at 4:00AM) the dialog box is displayed. Therefore, each morning I have to manually close the dialog box. No biggie, just an anoyance.

Thanks,
SKK
 
Interesting. Unless i'm missing something, the only way to disable that plug-in is through your method, OR reinstall AVG and un-check the Office Plugin (which of course removes it permanently!) So, I guess your way is the way to go.

Regarding the dialog box, look into AutoIt. I haven't used it, but many here have recommended its use for automating keystrokes and mouse clicks. Or, maybe repost in the WindowsXP (or appropriate OS) forum, you might get other ideas.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top