<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите написать скрипт.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=7755&amp;type=atom" />
	<updated>2012-11-04T12:03:58Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=7755</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите написать скрипт.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=65392#p65392" />
			<content type="html"><![CDATA[<p>Решил проблему сам. Вот скрипт:</p><div class="codebox"><pre><code>
Main
Sub Main
                Dim oFSO
                Dim sDirectoryPath
                Dim oFolder
                Dim oDelFolder
                Dim oFileCollection
                Dim oFile
                Dim oFolderCollection
                
                Set wshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)
                Set wshSysEnv = wshShell.Environment(&quot;PROCESS&quot;)
                sMyHomePath = wshSysEnv(&quot;HOMEPATH&quot;)
                
                Set oFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
                sDirectoryPath = &quot;C:&quot; + sMyHomePath + &quot;\Desktop\1&quot;
                set oFolder = oFSO.GetFolder(sDirectoryPath)
                set oFolderCollection = oFolder.SubFolders
                set oFileCollection = oFolder.Files
 
                For each oFile in oFileCollection
                               oFile.Delete(True)
                Next
 
                For each oDelFolder in oFolderCollection
                                oDelFolder.Delete(True)
                Next
 
                Set oFSO = Nothing
                Set oFolder = Nothing
                Set oFileCollection = Nothing
                Set oFile = Nothing         
 
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[daytery]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=28917</uri>
			</author>
			<updated>2012-11-04T12:03:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=65392#p65392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите написать скрипт.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=65391#p65391" />
			<content type="html"><![CDATA[<p>Здравствуйте господа!<br />Есть такой скрипт для бат файла:<br /></p><div class="codebox"><pre><code>RD C:%HOMEPATH%\ /S /Q</code></pre></div><p>Помогите написать соответствующий VBScript.<br />Заранее благодарен.</p>]]></content>
			<author>
				<name><![CDATA[daytery]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=28917</uri>
			</author>
			<updated>2012-11-04T09:46:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=65391#p65391</id>
		</entry>
</feed>
