There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox format freezes freezing hard drive hardware hijackthis install internet internet explorer itunes keyboard laptop malware motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Automating and event triggers


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
gbja7's Avatar
Junior Member with 7 posts.
 
Join Date: Sep 2004
Experience: Advanced I guess . . .
20-Oct-2004, 03:05 PM #1
Automating and event triggers
I hope I'm in the right forum. I've been working with batch files to automate some maintenance and security features for a friend who does not know much about computers but needs some sort of system to keep her computer as clean as possible without her input as it would confuse her. I have a general working knowledge of how .bat files work but have only just begun to delve deeper into its finer points as I stumble across a problem. I have the computer all pretty much setup but I left this last thing to ask as it seems like it would be a little more complex than what I have been doing with batch files.

I am looking for a way to have a batch file activate when a certain event occurs. I want the batch file to automate updating particular applications like spybot. I know how to do that part of the batch. However, the computer uses a dial-up connection and is not on 24/7.

If it were my computer I would automate that feature using rasdial. But this is for a friend who is not computer savvy and they may not use the same ISP in the future so the connectoids may change thus making the automated rasdial feature ineffective as soon as an ISP change is made.

And that is the problem. It would be nice if the batch activates when a certain event occurs telling it that the computer is online so it can perform its updating task without relying on rasdial.

Any kind of advice is welcome. Also I would like to setup a counter of some sort in the batch so it does not activate every time there is an online connection.

If it is of any importance the OS is windows xp home.

Thanks
Mithrilhall's Avatar
Senior Member with 781 posts.
 
Join Date: Mar 2001
Location: AU Microscopii
Experience: Studying for my CCNA
20-Oct-2004, 03:28 PM #2
I would use "Scheduled Task" in the control panel to run the batch file as often as you want (example: once per week).

Also, you could use the "Scheduled Task" to open Internet Explorer at your desired date and time and using Internet Explorer's Options you can set it to "always dial my default connection". I think that would open Internet Explorer and dial-up automatically.

You could then possibly use 'taskkill' in the batch to kill the dial-up connection.
__________________
*******************************
Registered Linux Users #437006


+ Desktop +
Linux - Kubuntu 6.10 / OS: Windows XP (Pro.)
MB: Shuttle : Model SN95G5
Processor: AMD 64 Athlon 3500 (Socket 939)
Geforce 7600GS 512MB
RAM: 2GB
Hard drive: 2 x 250Gb SATA150 (16Mb Cache)
External HD: 200Gb
Listening to...

Other Operating Systems:
-- Windows 2003 Standard Server
-- Windows 2005 MCE
-- Linux (Asterisk@Home)
*******************************
gbja7's Avatar
Junior Member with 7 posts.
 
Join Date: Sep 2004
Experience: Advanced I guess . . .
20-Oct-2004, 04:06 PM #3
Thanks,

I had come across that one a while ago but forgot about it. I suppose that will have to do as I need to get the computer back to her. One last question - I am sorry but I usually look this stuff up without asking people but since I a time restraint . . . I would like to set up some of these batches to run late at night. I was planning on having the computer go into sleep mode or some similar state instead of shutting down so these tasks could run. Is there a way to keep the monitor from coming on and muting sound using batches?
Fredledingue's Avatar
Senior Member with 404 posts.
 
Join Date: Aug 2003
Location: Klaipéda Lithuania
20-Oct-2004, 06:22 PM #4
gbja7's Avatar
Junior Member with 7 posts.
 
Join Date: Sep 2004
Experience: Advanced I guess . . .
20-Oct-2004, 11:49 PM #5
Thanks for the advice. Unfortunately, I have kept her computer for too long and I don't have any time to learn something new. I was really looking for a quick fix to get it off my hands and I just wanted to address some automation issues that had been bothering me. However, I will be sure to look at the links you have given me so I can implement them on my own computer. I appreciate the help.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:59 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.