Something like this:
a) First create a suitable location (say c:\batch).
b) Then create a shortcut to the connection in this location (r-click, =
drag, choose create shortcut)
create the following batch file
@ECHO OFF=20
PING localhost -n 20 -w 1000 >NUL=20
START RASDIAL.EXE <connection_name> <user_name> <password>
:End=20
c) Then create a shortcut to this batch file in the startup group.
Points to note:
1. I have added a 20 second delay to give time for things to start (esp =
dsl-modem) but as you're using permanent connection you might want to =
remove this.
2. It seems to be important to have the shortcut to the dun and the =
batch file in the same location.
3. Not sure about spaces in the dun shortcut name - if there are any you =
could try enclosing in double quotes or renaming it.
hth
john
Thanks for the heads up. Here's what I found experimenting (using
<localhost> for the VPN Server address so I could test it locally. You
may get two VPN Client icons in the tray, but so what).
1) No need for START. Just run RASDIAL and it will connect.
2) No need to put a shortcut of the connection in a special folder.
RASDIAL knows to look in the Network Connections folder where the VPN
Client Connection is defined.
3) Your newsreader is inserting extraneous characters at the end of
the line.
--
Map Of The Vast Right Wing Conspiracy:
http://www.freewebs.com/vrwc/
"You can all go to hell, and I will go to Texas."
--David Crockett