About windows dialer profiles RASDIAL phone book file (.pbk)

original:

https://blog.csdn.net/qq_33274417/article/details/53858393

1> First in the windows command line can direct existing broadband connection (for existing broadband connection)


              Command: rasdial.exe (located in C: \ Windows \ System32 below)

    用 法:rasdial entryname [username[password|*]]

                               [/ DOMAIN: domai] Domain: arranged generally do not

                              [/ PHONE: phonenumber] can not set

                              [/ CALLBACK: callbacknumber] not set                      

                              [/ PHONEBOOK: phonebookfile] phonebook file (.pbk)

                             [/PREFIXSUFFIX]    

              Features: 1, the command will look at whether the implementation of broadband configuration file named entryname in the phone book, the default configuration file

                              C:\Documents and Settings\AllUsers\ApplicationData\Microsoft\Network\Connections\Pbk下

                              Name: rasphone.pbk, which contains only the information that you have a broadband connection which does not include username and password information (name without connection dial-up connection)

                         2. Broadband rasdial name every time the phone book must be there, but you must set the username and password each time, he does not automatically add a username and password (method on broadband account boot from the start for you:     

                                http://jingyan.baidu.com/article/4b52d7025da2f8fc5c774bba.html)

                         3. you add parameters: You can find the [/ PHONEBOOK phonebookfile] specified file (.pbk) Broadband name

               Use: For the broadband dial-up function, you can use lower c # dotras.dll components do create, change, query operation

                            For python need to download pywin32 to support local call windows functions. Function mainly used win32ras (later go into detail)

                            For java is to use the local method (java native interface) to achieve

> How to create yourself a new broadband connection it ???   

               Demand: In fact, execute the command line rasdial command can connect and disconnect has done a broadband connection, but only through an existing broadband name (no time can use a different account password) account password is mandatory. If you directly: rasdial broadband name (if the name contains a space, please add broadband "broadband name") in the application log you will see there is no user name and password, then if I have to write your own

Broadband dial-up software you need to create a broadband own name, as used in the school e-letter, using operators to offer dial-up software, so I want to write one, and now I already know the dial-up software encryption

  Account, and I was ready to call a python win32ras by pywin32 to create a broadband connection, but have only been able to use the existing connection can not create a new connection,

  Is a clear need to create a dialog to obtain information input by the user, but does not, continue to learn about the first record !!!!!!.
----------------
Copyright: This article for the original article CSDN bloggers' delicious Pepsi ", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_33274417/article/details/53858393

Guess you like

Origin www.cnblogs.com/itfat/p/12103643.html