<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBscript.Перенос файлов в папку с именем даты создания файловYYYYMMDD]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5109&amp;type=atom" />
	<updated>2010-10-30T11:09:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5109</id>
		<entry>
			<title type="html"><![CDATA[VBscript.Перенос файлов в папку с именем даты создания файловYYYYMMDD]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41048#p41048" />
			<content type="html"><![CDATA[<p>Добрый день! Я хочю сделать так, чтобы в папке из которой копирую файлы, брать дату создания файла и переносить в созданную папку имя которой дата создания файла в формате YYYYMMDD.Подскажите пож-та!</p><p>Вот исходный код:</p><div class="codebox"><pre><code>set fso = createobject(&quot;Scripting.FileSystemObject&quot;)  
set shell = WScript.CreateObject(&quot;WScript.Shell&quot;)  
path_source = shell.specialfolders(&quot;Desktop&quot;)  
path_dest = shell.specialfolders(&quot;Desktop&quot;) &amp; &quot;\RADIO&quot;  
ext = &quot;txt&quot;  
if not fso.folderexists(path_dest) then fso.createfolder(path_dest)  
for each file in fso.getfolder(path_source).files  
  if fso.getextensionname(file) = ext then fso.copyfile file, path_dest &amp; &quot;\&quot; &amp; fso.getfilename(file)  
next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Killa]]></name>
			</author>
			<updated>2010-10-30T11:09:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41048#p41048</id>
		</entry>
</feed>
