<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; PowerShell: Освобождение места на диске]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=7093&amp;type=atom" />
	<updated>2012-04-23T07:54:53Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=7093</id>
		<entry>
			<title type="html"><![CDATA[Re: PowerShell: Освобождение места на диске]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=59665#p59665" />
			<content type="html"><![CDATA[<p>$m_Space = 50000000000<br />while ((Get-WMIObject Win32_LogicalDisk -filter &#039;DeviceID=&#039;E:\&#039;).FreeSpace -lt $m_Space) { Get-ChildItem -Path &#039;E:\&#039; | Sort CreationTime -desc | Select -Last 1 | Remove-Item -Recurse -Force}</p>]]></content>
			<author>
				<name><![CDATA[Spyder3W]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24644</uri>
			</author>
			<updated>2012-04-23T07:54:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=59665#p59665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PowerShell: Освобождение места на диске]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=59174#p59174" />
			<content type="html"><![CDATA[<p>Как пример:</p><div class="codebox"><pre><code>$m_Space = 50000000000
while (([IO.DriveInfo]::GetDrives() | ? {$_.Name -eq &#039;E:\&#039;}).AvailableFreeSpace -ne $m_Space) {
  gci -path E:\* -rec -for -exclude YourWildcard -ea 0 | ri
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[greg zakharov]]></name>
			</author>
			<updated>2012-04-12T13:44:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=59174#p59174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[PowerShell: Освобождение места на диске]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=59165#p59165" />
			<content type="html"><![CDATA[<p>Есть скрипт на VBS хочу его перевести в PowerShell<br />может кто знает как красиво сделать вот такое<br /></p><div class="codebox"><pre><code>NeedFreeSpace = 50000000000

Do Until fso.GetDrive(&quot;E:&quot;).FreeSpace &gt; NeedFreeSpace
    LastFolder(fso.GetFolder(&quot;E&quot;))
    fso.DeleteFolder fLst, True
Loop</code></pre></div><p>LastFolder - поиск самой старой папки, но это уже перевел на PS</p>]]></content>
			<author>
				<name><![CDATA[Spyder3W]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24644</uri>
			</author>
			<updated>2012-04-12T12:26:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=59165#p59165</id>
		</entry>
</feed>
