<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Проблема с FileDelete]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13307&amp;type=atom" />
	<updated>2017-12-17T17:32:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13307</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122414#p122414" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>var := &quot;A_Desktop\file.ahk&quot;
msgbox % RegexReplace(var, &quot;A_Desktop&quot;, A_Desktop)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-17T17:32:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122414#p122414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122413#p122413" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, Надо будет изменять на сервере значение</p>]]></content>
			<author>
				<name><![CDATA[Diman_Express]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30364</uri>
			</author>
			<updated>2017-12-17T17:19:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122413#p122413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122408#p122408" />
			<content type="html"><![CDATA[<p><strong>Diman_Express</strong>, а зачем скрипту что-то читать из текстового файла?<br />Почему это не сразу вписать в скрипт?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-12-17T14:05:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122408#p122408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122398#p122398" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, тогда извиняюсь. В таком случае будет передаваться считываемая строка, т.е. &quot;%A_Desktop%\folder\file.txt&quot;.<br />Есть <a href="http://forum.script-coding.com/viewtopic.php?id=13263">похожая тема</a> с ответом.</p>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-12-17T12:56:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122398#p122398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122397#p122397" />
			<content type="html"><![CDATA[<p><strong>MandarinKa02</strong>, вроде проблема&nbsp; была в другом. В одном файле хранится строка, означающая путь к файлу, причём в формате, понятном только AutoHotkey, например %A_Desktop%\folder\file.txt. Скрипт должен считать эту строку, затем удалить файл, указанный в строке.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-12-17T12:42:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122397#p122397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122396#p122396" />
			<content type="html"><![CDATA[<p>У меня всё работает<br /></p><div class="codebox"><pre><code>FileAppend, text`ntext2`nunknown text, % A_Desktop &quot;\text.txt&quot;

FileRead, out, % A_Desktop &quot;\text.txt&quot;
msgbox % out
</code></pre></div><br /><div class="codebox"><pre><code>value := &quot;text&quot;
RegWrite, REG_SZ, HKLM, SOFTWARE\Test, option, % value
RegRead, out, HKLM, SOFTWARE\Test, option
RegDelete, HKLM, SOFTWARE\Test, option
msgbox % out</code></pre></div>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-12-17T12:03:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122396#p122396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122392#p122392" />
			<content type="html"><![CDATA[<p>А что с ним?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-12-17T06:26:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122392#p122392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122391#p122391" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> с реестром, я так понял, это не сработает?</p>]]></content>
			<author>
				<name><![CDATA[Diman_Express]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30364</uri>
			</author>
			<updated>2017-12-17T06:25:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122391#p122391</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122390#p122390" />
			<content type="html"><![CDATA[<p>Наверное только костылём:<br /></p><div class="codebox"><pre><code>
folder = new folder
name = script.ahk
text = `%A_Desktop`%\old folder\`%folder`%\`%name`% 

MsgBox % text
	
While RegExMatch(text, &quot;`%(.*?)`%&quot;, M) 
	text := RegExReplace(text, &quot;`%.*?`%&quot;, %M1%, , 1)  
	
MsgBox % text
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-12-17T06:16:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122390#p122390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122389#p122389" />
			<content type="html"><![CDATA[<p>Такая же проблема и с RegWrite. <br />Делаю RegWrite, %prochitano% - 0 реакции</p>]]></content>
			<author>
				<name><![CDATA[Diman_Express]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30364</uri>
			</author>
			<updated>2017-12-17T06:11:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122389#p122389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проблема с FileDelete]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122388#p122388" />
			<content type="html"><![CDATA[<p>Привет, форумчане. Возникла такая проблема - опишу ситуацию.</p><p>Вот я прочитал текстовик через FileRead, в текстовике был указан путь к файлу, который надо удалить, но скрипт его воспринимает буквально. Т.е. %A_Desktop% он так и читает, а не приравнивает к настоящему пути C:\User\Desktop.</p><p>Как можно это исправить?</p>]]></content>
			<author>
				<name><![CDATA[Diman_Express]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30364</uri>
			</author>
			<updated>2017-12-17T05:46:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122388#p122388</id>
		</entry>
</feed>
