<?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=18279&amp;type=atom" />
	<updated>2024-08-18T16:43:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18279</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление даты создания файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161435#p161435" />
			<content type="html"><![CDATA[<p><strong>Андрейка 007</strong></p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Оформите код соответствующим тегом.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-18T16:43:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161435#p161435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление даты создания файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161434#p161434" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Огромное спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Андрейка 007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26640</uri>
			</author>
			<updated>2024-08-18T16:28:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161434#p161434</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление даты создания файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161433#p161433" />
			<content type="html"><![CDATA[<p>Оформите код соответствующим тегом.<br />Замените<br /></p><div class="codebox"><pre><code>FileAppend , %FileList%, C:\Проба\1.txt</code></pre></div><p>на<br /></p><div class="codebox"><pre><code>FileAppend , % RegExReplace(FileList, &quot;m`a)^.+?\s&quot;), C:\Проба\1.txt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-18T16:11:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161433#p161433</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление даты создания файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161432#p161432" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Спасибо , так работает. А как мне создать файл 2.txt&nbsp; &nbsp;в котором будут эти значения не очень понимаю.<br />1.txt создавал так&nbsp; :<br /></p><div class="codebox"><pre><code>Loop, D:\Проба\*.*, 1 ; *.txt

    FileList = %FileList%%A_LoopFileTimeModified%`t%A_LoopFileName%`n
    Sort, FileList,R ; Сортировать по дате.
     Loop, parse, FileList, `n
{
    if A_LoopField = ; Пропустить последний перевод строки (пустую строку) в конце списка.
         continue
     StringSplit, FileItem, A_LoopField, %A_Tab% ; Разбить на две части в месте, где табуляция.
    
         break
}
FileAppend , %FileList%, C:\Проба\1.txt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Андрейка 007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26640</uri>
			</author>
			<updated>2024-08-18T16:06:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161432#p161432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление даты создания файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161431#p161431" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>source = 
(
20240816125910 B470HM136_XD27HS420R8001343_20240816.txml
20240816125634 A911HM136_XD27HS420R7000606_20240816.txml
20240816125420 A908HM136_XD27HS420R7000733_20240816.txml
20240816125144 B475HM136_XD27HS420R7000741_20240816.txml
20240816124912 A914HM136_XD27HS420R7000874_20240816.txml
20240816124658 A906HM136_XD27HS420R7000735_20240816.txml
)
MsgBox % RegExReplace(source, &quot;m`a)^.+?\s&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-08-18T15:54:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161431#p161431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удаление даты создания файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161429#p161429" />
			<content type="html"><![CDATA[<p>Здравствуйте. <br />После сортировки строк в файле командой&nbsp; A_LoopFileTimeModified<br />Получается текстовый файл такого вида :<br />20240816125910	B470HM136_XD27HS420R8001343_20240816.txml<br />20240816125634	A911HM136_XD27HS420R7000606_20240816.txml<br />20240816125420	A908HM136_XD27HS420R7000733_20240816.txml<br />20240816125144	B475HM136_XD27HS420R7000741_20240816.txml<br />20240816124912	A914HM136_XD27HS420R7000874_20240816.txml<br />20240816124658	A906HM136_XD27HS420R7000735_20240816.txml</p><p>Помогите создать файл 2.txt , в&nbsp; котором не будет даты создания файла.<br /> Т.е должно остаться только это :</p><p>B470HM136_XD27HS420R8001343_20240816.txml<br />A911HM136_XD27HS420R7000606_20240816.txml<br />A908HM136_XD27HS420R7000733_20240816.txml<br />B475HM136_XD27HS420R7000741_20240816.txml<br />A914HM136_XD27HS420R7000874_20240816.txml<br />A906HM136_XD27HS420R7000735_20240816.txml<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Андрейка 007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26640</uri>
			</author>
			<updated>2024-08-18T15:47:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161429#p161429</id>
		</entry>
</feed>
