Форумы

GNU.SU - Записки нубо-0peraойда :: Форумы :: LinuxЫ :: Виндуз
 
<< Предыдущая тема | Следующая тема >>
Запуск ВПН в Виндовз из коммандной строки Rasdial
Модераторы: Браузер 0pera, Frizze, andrey, Bender
Автор Добавил
andrey
Срд Окт 27 2010, 09:22

ID пользователя #2
Зарегистрирован: Срд Май 05 2010, 10:56

Сообщений: 69
Rasdial

Иногда очень удобно запускать из пакетного файла, один минус, пароль от соединения хранится в файле в открытом виде.

Syntax

rasdial ConnectionName [UserName [{Password | *}]] [/domain:Domain] [/phone:PhoneNumber] [/callback:CallbackNumber] [/phonebook:PhonebookPath] [/prefixsuffix]

rasdial [ConnectionName] /disconnect

Parameters

ConnectionName
Required when connecting to a phonebook (.pbk) entry. Specifies an entry in the current .pbk file, located in the systemБраузер 0pera\System32\Ras folder. If the ConnectionName contains spaces or special characters, use quotation marks around the text (that is, "Connection Name").

The Rasphone.pbk file is used unless the Personal Phonebook option is selected. If the Personal Phonebook option is selected, the file UserName.pbk is used. The name is shown on the Rasphone title bar when Personal Phonebook/p is selected. Numbers are appended if name conflicts occur.

UserName[{ Password| *}]
Specifies a user name and password with which to connect. If an asterisk is used, the user is prompted for the password, but the characters typed do not display.

/domain: Domain
Specifies the domain in which the user account is located. If unspecified, the last value of the Domain field in the Connect To dialog box is used.

/phone: PhoneNumber
Substitutes the specified phone number for the entry's phone number in Rasphone.pbk.

/callback: CallbackNumber
Substitutes the specified callback number for the entry's callback number in Rasphone.pbk.

/phonebook: PhonebookPath
Specifies the path to the phonebook file. The default is systemБраузер 0pera\System32\Ras\UserName.pbk. You can specify a full path to the file.

/prefixsuffix
Applies the current TAPI location dialing settings to the phone number. These settings are configured in Telephony, which is located in Control Panel. This option is turned off by default.

/disconnect
Required when disconnecting. Disconnects the specified entry. You can also disconnect by typing /d.

Remarks

* The following Rasphone.exe features are not supported with rasdial:

o Entries that require Terminal mode user entry during the dial sequence

o Operator-assisted or manual dialing

Examples

In the following example, this command connects to the OFFICE entry in Rasphone.pbk:

rasdial office

In the following example, this command connects to the OFFICE 2 entry in Rasphone.pbk and specify a callback number:

rasdial "office 2" /callback:555-0100

In the following example, this command disconnects from the EAST OFFICE entry:

rasdial "EAST OFFICE" /d


[ Редактирование Срд Окт 27 2010, 09:23 ]
Наверх

 

Перейти:     Наверх

Транслировать сообщения этой темы: rss 0.92 Транслировать сообщения этой темы: rss 2.0 Транслировать сообщения этой темы: RDF
Powered by e107 Forum System
22cd68bd