<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Как построить дерево процессов?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6313&amp;type=atom" />
	<updated>2011-10-31T13:38:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6313</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как построить дерево процессов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=53066#p53066" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Rom5 пишет:</cite><blockquote><p>Может стоит считать сразу все процессы в массив, а потом уже на его основе сделать сортировку с учетом зависимостей и отобразить в виде дерева?</p></blockquote></div><p>Может быть, но я не знаю как это сделать.</p>]]></content>
			<author>
				<name><![CDATA[netrezv]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27040</uri>
			</author>
			<updated>2011-10-31T13:38:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=53066#p53066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как построить дерево процессов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52440#p52440" />
			<content type="html"><![CDATA[<p>Может стоит считать сразу все процессы в массив, а потом уже на его основе сделать сортировку с учетом зависимостей и отобразить в виде дерева?</p>]]></content>
			<author>
				<name><![CDATA[Rom5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5724</uri>
			</author>
			<updated>2011-10-13T16:12:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52440#p52440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как построить дерево процессов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52435#p52435" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>Да, можно. Что именно у Вас не получается?</p></blockquote></div><p>Вложенность не получается, а если несколько парентов.<br />что я не так делаю:<br /></p><div class="codebox"><pre><code>Set wmi = GetObject(&quot;winmgmts://./root/CimV2&quot;)
Set proc = wmi.ExecQuery(&quot;select * from Win32_Process&quot;)

For Each s In proc
    WScript.Echo s.Caption  &amp; &quot;, &quot; &amp; s.ProcessID
     pid =  s.ProcessID
    Set proc2 = wmi.ExecQuery(&quot;select * from Win32_Process where ParentProcessID=&quot; &amp; pid)
    For Each ss In proc2
     WScript.Echo &quot; &quot; &amp; ss.Caption &amp; &quot;, &quot; &amp; ss.ProcessID
    next
next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[netrezv]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27040</uri>
			</author>
			<updated>2011-10-13T14:22:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52435#p52435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Как построить дерево процессов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52432#p52432" />
			<content type="html"><![CDATA[<p>Да, можно. Что именно у Вас не получается?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-13T13:39:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52432#p52432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Как построить дерево процессов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52425#p52425" />
			<content type="html"><![CDATA[<p>по образу pslist.exe -t, можно сделать так же из класса Win32_Process в vbs?<br /></p><div class="codebox"><pre><code>Process information for COMP:

Name                             Pid Pri Thd  Hnd      VM      WS    Priv
Idle                               0   0   2    0       0      16       0
  System                           4   8  84  831    1888     224       0
    smss                         576  11   2   21    3556     388     152
      csrss                      640  13  13 1062   33428    6356    2468
      winlogon                   672  13  22 1291   63088    4664    7460
        services                 716   9  15  407   45596   10744    5212
          DefWatch               120   8   4   52   40108    5500    1928
            DWHWizrd            1748   8   3  132   43932    5460    2008
          Rtvscan                188   8  14  400   88240   18228   10856
          jqs                    296   4  11  284   96584    1404   12384
          RadeSvc                516   8   6  105   55400    8088    4260
          locator                632   8   3   49   28364    2848    1004</code></pre></div>]]></content>
			<author>
				<name><![CDATA[netrezv]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27040</uri>
			</author>
			<updated>2011-10-13T06:43:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52425#p52425</id>
		</entry>
</feed>
