<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBScript: проверка существования файла]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6320&amp;type=atom" />
	<updated>2011-10-17T04:07:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6320</id>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52563#p52563" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p><strong>Francyz</strong>, а что Вам мешает сие просто проверить?</p></blockquote></div><p>На тот момент был с телефона <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />, но щас уже проверил и частично работает, т.е. копирует только вложенные папки с их содержимым, а файлы в корневой папке пропускает.</p>]]></content>
			<author>
				<name><![CDATA[Francyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25926</uri>
			</author>
			<updated>2011-10-17T04:07:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52563#p52563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52559#p52559" />
			<content type="html"><![CDATA[<p><strong>Francyz</strong>, а что Вам мешает сие просто проверить?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-16T22:39:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52559#p52559</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52536#p52536" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dab00 пишет:</cite><blockquote><p><a href="http://msdn.microsoft.com/en-us/library/xbfwysex(v=vs.85).aspx">CopyFolder Method</a> <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.</p></blockquote></div><p>Ну я на основе него и спросил, т.к. для копировании файла стоит:<br /></p><div class="codebox"><pre><code>FileSystemObject.CopyFile &quot;c:\mydocuments\letters\*.doc&quot;, &quot;c:\tempfolder\&quot;</code></pre></div><p>А в скрипте написано:<br /></p><div class="codebox"><pre><code>.CopyFile &quot;D:\Files\temp.txt&quot;, &quot;F:\copyFiles\&quot;, True</code></pre></div><p>Я и спросил достаночно ли будет того что я написал вышел</p>]]></content>
			<author>
				<name><![CDATA[Francyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25926</uri>
			</author>
			<updated>2011-10-16T14:48:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52536#p52536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52528#p52528" />
			<content type="html"><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/xbfwysex(v=vs.85).aspx">CopyFolder Method</a> <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[dab00]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27085</uri>
			</author>
			<updated>2011-10-16T12:35:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52528#p52528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52527#p52527" />
			<content type="html"><![CDATA[<p>Я правильно понимаю, что если я захочу изменить логику и копировать на файл, а всю папку со всем содержимым, мне достаточно изменить <br /></p><div class="codebox"><pre><code>        If .FileExists(&quot;D:\Files\temp.txt&quot;) Then
            If .FolderExists(&quot;F:\copyFiles&quot;) Then
                .CopyFile &quot;D:\Files\temp.txt&quot;, &quot;F:\copyFiles\&quot;, True
            End If
        End If</code></pre></div><p>на вот этот<br /></p><div class="codebox"><pre><code>            If .FolderExists(&quot;F:\copyFiles&quot;) Then
                .CopyFolder &quot;D:\Files\*&quot;, &quot;F:\copyFiles\&quot;, True
            End If</code></pre></div><p>И этого будет достаточно?</p>]]></content>
			<author>
				<name><![CDATA[Francyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25926</uri>
			</author>
			<updated>2011-10-16T11:40:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52527#p52527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52524#p52524" />
			<content type="html"><![CDATA[<p>Спасибо, выручили. Пытался сделать без второго условия.</p>]]></content>
			<author>
				<name><![CDATA[Francyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25926</uri>
			</author>
			<updated>2011-10-16T07:06:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52524#p52524</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52513#p52513" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>With WScript.CreateObject(&quot;Scripting.FileSystemObject&quot;)
    If .FileExists(&quot;D:\Files\finish.txt&quot;) Then
        .DeleteFile &quot;D:\Files\finish.txt&quot;, True
        
        If .FileExists(&quot;D:\Files\temp.txt&quot;) Then
            If .FolderExists(&quot;F:\copyFiles&quot;) Then
                .CopyFile &quot;D:\Files\temp.txt&quot;, &quot;F:\copyFiles\&quot;, True
            End If
        End If
    End If
End With</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-15T17:59:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52513#p52513</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBScript: проверка существования файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52512#p52512" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Francyz пишет:</cite><blockquote><p>Помогите упросить скрипт из поста 4, поиск только в конкретной папке. </p><p>Есть папка D:\Files в ней всегда лежит файл temp.txt. Скрипт должен будет просмотреть есть ли в этой папке файл finish.txt и если файл там есть, то он удаляет этот файл а после этого копирует файл temp.txt на диск F:\copyFiles</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-10-15T17:54:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52512#p52512</id>
		</entry>
</feed>
