<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Автоматический коннект VPN]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6299&amp;type=atom" />
	<updated>2011-10-25T19:25:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6299</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Автоматический коннект VPN]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52910#p52910" />
			<content type="html"><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.85).aspx">Run Method</a></p>]]></content>
			<author>
				<name><![CDATA[dab00]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27085</uri>
			</author>
			<updated>2011-10-25T19:25:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52910#p52910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Автоматический коннект VPN]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52908#p52908" />
			<content type="html"><![CDATA[<p>и так.... сделал вот такое:</p><div class="codebox"><pre><code>On Error Resume Next
set WshShell = CreateObject(&quot;WScript.Shell&quot;)
Return = WshShell.Run(&quot;rasdial conecction_name user password&quot;, 0, true)


WScript.Sleep 1000
Return = WshShell.Run (&quot;rasdial connection_name user password&quot;, 0, true)
If Return=1 then
if Shell.Run(strCommand,1, True)=1 then wsh.quit

end if
dim oShell
set oShell= WScript.CreateObject(&quot;WScript.Shell&quot;) 
WScript.Echo &quot;Неудачное подключпение&quot;</code></pre></div><p>Хочу сделать так чтобы при неудачном подключении к ВПН выдавалась сообщение. А в случае удачи ничего не выдовалось. Где я ошибся? Help.</p>]]></content>
			<author>
				<name><![CDATA[nnn123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25536</uri>
			</author>
			<updated>2011-10-25T18:53:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52908#p52908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Автоматический коннект VPN]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52369#p52369" />
			<content type="html"><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394350(v=vs.85).aspx">Win32_PingStatus class</a></p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-11T10:14:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52369#p52369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Автоматический коннект VPN]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52366#p52366" />
			<content type="html"><![CDATA[<p>тоже сейчас задаюсь таким вопросом)<br />например можно начать с этого: WshShell.Run(&quot;ping !здесь айпишник! &quot;, 0, true)</p><p>вопрос только в методе подключения к впн...</p>]]></content>
			<author>
				<name><![CDATA[nnn123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25536</uri>
			</author>
			<updated>2011-10-11T07:06:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52366#p52366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Автоматический коннект VPN]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52333#p52333" />
			<content type="html"><![CDATA[<p>Можно:<br />1. Пингуется хост (в WMI есть метод), доступный только при установленном vpn.<br />2. Если не отвечает, то попытка установить vpn соединение (соответственно VPN должен быть софтовым).<br />3. Пауза и возврат к п.1</p>]]></content>
			<author>
				<name><![CDATA[GreyBear]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24465</uri>
			</author>
			<updated>2011-10-10T08:03:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52333#p52333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Автоматический коннект VPN]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52254#p52254" />
			<content type="html"><![CDATA[<p>Всем доброго суток.. Есть вопрос.. Можно ли сделать такой скрипт.. который бы висел в процессах и проверял подключение VPN соединения. Если оно отключено то он его снова поднимает&nbsp; ? </p><p>Если можно ... то подскажите куда смотреть.</p>]]></content>
			<author>
				<name><![CDATA[Arlekin_s]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24437</uri>
			</author>
			<updated>2011-10-07T13:54:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52254#p52254</id>
		</entry>
</feed>
