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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running batch file after dial-up connection 1

Status
Not open for further replies.

colin81

Technical User
Jul 22, 2002
77
GB
Hi All

Is there a way of executing a batch file once a dial-up connection has been established on windows xp machines? This needs to be setup on individual pc's.

Thanks for reading
Col
 
You seem to have 2 options

1 run is as a script which would run login
2 place the batch file on the users laptop and get them to run it manually
 
Thanks for reply

Both of these options have been reviewed and dismissed because,

1. They do not log on to the domain (ruling out login scripts). I think this is what you were referring to in point 1 above although your point is not perfectly clear and I could be wrong.

2. Batch files were previously placed on users desktop but they did not initiate it.

For this batch file to run the user needs to be connected to the network via dun and then run it (which they are not doing). We require a script to run upon connection to the network via a dun connection, at present the only way I can see possible is via a scp script (which would then call a batch file located on local machine)....which unfortunately is a skill I lack. I cannot find away of running a standard bat file at present.

Many Thanks
Col
 
To be fair to bobej's thought above, there is are available under several features of XP that may help:

. Under Group Policy, you can assign a script at logon (and logoff);

. Under the Scheduled Task Service, you can assign a .bat, .cmd or script to additional options: at startup, at, at logon, etc. Please explore these options.

Create the .bat, .cmd or script, and point Scheduled Tasks to these already created files. The scheduling option (and not too the opportunity to use alternate credentials) may well resolve your issue.

Bill


 
colin81,

One additional .bat or scripting occasion that could possibly help is the use of "Event triggers." It strikes me that an Event trigger could be created as the result of a DUN connection, although honestly I have never had occasion to write one personally.
 
Thanks for the info the event triggers have worked stright away thats great! I hadnt previously used this functinality and seems a perfect solution as it completes the task after connection to the network via dun. Sorry if I came across badly in my previous post I had already assessed all possible solutions for running scripts etc.

Your posts have been very helpful

Many Thanks
Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top