<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS  WshShell.SpecialFolders]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7431&amp;type=atom" />
	<updated>2012-08-07T08:09:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7431</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS  WshShell.SpecialFolders]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62448#p62448" />
			<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>2012-08-07T08:09:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62448#p62448</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS  WshShell.SpecialFolders]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62445#p62445" />
			<content type="html"><![CDATA[<p>Вот и верь после этого статьям в интернете...</p>]]></content>
			<author>
				<name><![CDATA[inock]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25049</uri>
			</author>
			<updated>2012-08-07T07:39:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62445#p62445</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS  WshShell.SpecialFolders]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62443#p62443" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>inock пишет:</cite><blockquote><p>... не возвращается путь к Program Files...</p></blockquote></div><p>В коллекции <span style="color: blue">WshSpecialFolders</span> нет такого объекта.<br />Описание в MSDN: <a href="http://msdn.microsoft.com/ru-ru/library/0ea7b5xe.aspx">SpecialFolders Property</a></p>]]></content>
			<author>
				<name><![CDATA[Dmitrii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=13351</uri>
			</author>
			<updated>2012-08-07T05:56:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62443#p62443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS  WshShell.SpecialFolders]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62441#p62441" />
			<content type="html"><![CDATA[<p>Здравствуйте.</p><p>А кто-нибудь знает, почему WshShell.SpecialFolders может возвращать NULL для некоторых значений? В данном примере, например, не возвращается путь к Program Files. Был момент, когда не возвращается путь к Destop... Понятно, что эти папки в действительности присутствуют <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>Текст скрипта:<br /></p><div class="codebox"><pre><code>Set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)

DesktopPath = WshShell.SpecialFolders(&quot;Desktop&quot;)
StartupPath = WshShell.SpecialFolders(&quot;Startup&quot;)
ProgramPath = WshShell.SpecialFolders(&quot;ProgramFiles&quot;)

Wscript.Echo DesktopPath
Wscript.Echo StartupPath
Wscript.Echo ProgramPath</code></pre></div><p>Вывод скрипта:</p><div class="codebox"><pre><code>C:\TEMP&gt;ver

Microsoft Windows [Version 6.1.7601]

C:\TEMP&gt;cscript test2.vbs
Сервер сценариев Windows (Microsoft R) версия 5.8
c Корпорация Майкрософт (Microsoft Corp.), 1996-2001. Все права защищены.

C:\Users\imitichev\Desktop
C:\Users\imitichev\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

C:\TEMP&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inock]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25049</uri>
			</author>
			<updated>2012-08-07T04:37:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62441#p62441</id>
		</entry>
</feed>
