
08.03.2009, 15:13
|
|
Познавший АНТИЧАТ
Регистрация: 12.07.2008
Сообщений: 1,705
Провел на форуме: 5914048
Репутация:
1350
|
|
Ладно если и читать не хотите,правельные решения,то
You need a batch script to connect to a VPN that is set up on the base machine. I had a similar problem to deal with a while ago and I found this and this link to be helpful. I have used this solution (first link) in the past so it works but I don't have the batch script anymore.
1.) Include rasphone.pbk in your script (under C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\ in XP. under C:\Users\USERNAME\AppData\Roaming\Microsoft\Networ k\Connections\Pbk in Vista)
2.) Set working directory to a variable name so you can return to it
3.) Move to the directory where the phonebook is stored using variable names based on the user profile
4.) Test that the phone book is there, if it is, rename it to rasphone.pbk.bk, then xcopy from the script location (as saved in variable) the new phone book to the new place.
5.) Connect.
6.) When ready, disconnect and overwrite the phone book with your settings in with the original file if it is there, else simply delete the phone book.
|
|
|