<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: WMI аналог "netstat -ano"]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10619</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10619&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: WMI аналог "netstat -ano"».]]></description>
		<lastBuildDate>Fri, 01 May 2015 11:14:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: WMI аналог "netstat -ano"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=93770#p93770</link>
			<description><![CDATA[<p>Не, ну как бы да, конечно...<br />Окошко уберётся...<br />Подумаю, может изменю времянку.<br />Спасибо.<br />Но изначальный вопрос остаётся открытым.</p>]]></description>
			<author><![CDATA[null@example.com (MikeSh)]]></author>
			<pubDate>Fri, 01 May 2015 11:14:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=93770#p93770</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: WMI аналог "netstat -ano"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=93769#p93769</link>
			<description><![CDATA[<div class="quotebox"><cite>MikeSh пишет:</cite><blockquote><p>В этой реализации смущает чёрное окно командной строки, появляющееся на мгновение.</p></blockquote></div><p><a href="http://forum.script-coding.com/viewtopic.php?pid=89488#p89488">Пример обхода</a>.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Fri, 01 May 2015 11:11:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=93769#p93769</guid>
		</item>
		<item>
			<title><![CDATA[VBS: WMI аналог "netstat -ano"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=93768#p93768</link>
			<description><![CDATA[<p>Добрый день.<br />Искал в интернетах и зашёл в тупик.<br />Изначальная задача - найти IP сервера, зная, PID процесса, который к нему подключен.</p><p>В данный момент это реализовано таким образом</p><div class="codebox"><pre><code>
Function GetFBDServerIP(Pid)

  fIP = &quot;&quot;

  Set shExec = WshShell.Exec(&quot;cmd /c netstat -ano|Find &quot;&quot;:3050&quot;&quot;|Find &quot;&quot;&quot; &amp; Pid &amp; &quot;&quot;&quot;&quot;)

  While (Not shExec.StdOut.AtEndOfStream) And fIP = &quot;&quot;

    Str = shExec.StdOut.ReadLine()
    If Right(Str, Len(Pid)) = Pid &amp; &quot;&quot; Then
      SplitStr = Split(Str, &quot; &quot;)
      i = 0 

      While i &lt; UBound(SplitStr) And fIP = &quot;&quot;

        If InStr(SplitStr(i), &quot;:3050&quot;) &lt;&gt; 0 Then fIP = Replace(SplitStr(i), &quot;:3050&quot;, &quot;&quot;)
        i = i + 1

      WEnd

    End If

  WEnd

  GetFBDServerIP = fIP

End Function
</code></pre></div><p>Прошу не судить за код строго, я считаю его времянкой, пока не найду более удачного решения.<br />В этой реализации смущает чёрное окно командной строки, появляющееся на мгновение.</p>]]></description>
			<author><![CDATA[null@example.com (MikeSh)]]></author>
			<pubDate>Fri, 01 May 2015 10:59:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=93768#p93768</guid>
		</item>
	</channel>
</rss>
