<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Удаление неудаляемого]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7005&amp;type=atom" />
	<updated>2012-03-27T11:07:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7005</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление неудаляемого]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58456#p58456" />
			<content type="html"><![CDATA[<p>Это понятно, но раз (пока) вопросов по этому поводу не возникло, будем считать, что со своей работой скрипт справляется.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-03-27T11:07:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58456#p58456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление неудаляемого]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58447#p58447" />
			<content type="html"><![CDATA[<p><strong>Andros</strong> и <strong>Irbis</strong> Для справки. <br />Данный скрипт может не сработать, если exe или dll заблокированы системой (зависит от OS)</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-27T08:29:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58447#p58447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление неудаляемого]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58403#p58403" />
			<content type="html"><![CDATA[<p><a href="http://www.autohotkey.com/docs/commands/FileSelectFolder.htm"><span style="color: red">FileSelectFolder</span></a></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-03-26T15:40:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58403#p58403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление неудаляемого]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58389#p58389" />
			<content type="html"><![CDATA[<p>Спасибо большое. А как сделать, чтобы он искал директорию Folder? Ведь она может быть в любом разделе и в любой папке. Или хотя-бы можно было выбрать её самому.</p>]]></content>
			<author>
				<name><![CDATA[Andros]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26875</uri>
			</author>
			<updated>2012-03-26T10:51:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58389#p58389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление неудаляемого]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58388#p58388" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>TargetDir = C:\Program Files\Folder

Loop, %TargetDir%\*.exe
{
   Process, Exist, %A_LoopFileName%
   if ErrorLevel
   {
      WinClose, ahk_pid ErrorLevel,,2
      Process, Exist, %A_LoopFileName%
      if ErrorLevel
         Process, Close, %A_LoopFileName%
   }
}

Loop, %TargetDir%\*.dll
{
      hModule := DllCall(&quot;GetModuleHandle&quot;, Str, &quot;%A_LoopFileName%&quot;, &quot;Ptr&quot;)
	  if hModule
         DllCall(&quot;FreeLibrary&quot;, &quot;Ptr&quot;, hModule)
}
sleep 500
FileDelete, %TargetDir%\*.exe
FileDelete, %TargetDir%\*.dll</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-03-26T10:01:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58388#p58388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удаление неудаляемого]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58377#p58377" />
			<content type="html"><![CDATA[<p>Мне надо, чтобы скрипт нашёл и удалил папки с запущенными файлами или запущенные файлы. Разумеется при использовании:<br /></p><div class="codebox"><pre><code>FileDelete, C:\Program Files\Folder\*.exe
FileDelete, C:\Program Files\Folder\*.dll</code></pre></div><p>Удаляются только не запущенные. Как осуществить их удаление? Заранее спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Andros]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26875</uri>
			</author>
			<updated>2012-03-26T07:36:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58377#p58377</id>
		</entry>
</feed>
