How to run a Post PPPOE Connection Script in XP

amarjits

Well-Known Member
Joined
Feb 28, 2006
Messages
441
Reaction score
0
Location
Durban - South Africa
Hi,

i want to set some routes on a Windows XP machine (which i am using as a proxy server) after the PPPOE connection link is established.

at the moment i have to do it manually...means after dialing the connection i run this batch file to setup all the routes...

can't we do something like in linux ????
 
I'm doing something like this in a Python script.

You can use the rasdial command to initiate a connection from a script. Your batch file can dial the connection for you and then set up the routes.

Code:
[c:\]rasdial /?
USAGE:
        rasdial entryname [username [password|*]] [/DOMAIN:domain]
                [/PHONE:phonenumber] [/CALLBACK:callbacknumber]
                [/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]

        rasdial [entryname] /DISCONNECT

        rasdial
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X