<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: проверить существование файла]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=5016</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5016&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: проверить существование файла».]]></description>
		<lastBuildDate>Mon, 11 Oct 2010 13:35:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40305#p40305</link>
			<description><![CDATA[<div class="codebox"><pre><code>&#039; Enum SHCONTF
Const SHCONTF_FOLDERS             = &amp;H0020 &#039; only want folders enumerated (SFGAO_FOLDER)
Const SHCONTF_NONFOLDERS          = &amp;H0040 &#039; include non folders
Const SHCONTF_INCLUDEHIDDEN       = &amp;H0080 &#039; show items normally hidden
Const SHCONTF_INIT_ON_FIRST_NEXT  = &amp;H0100 &#039; allow EnumObject() to return before validating enum
Const SHCONTF_NETPRINTERSRCH      = &amp;H0200 &#039; hint that client is looking for printers
Const SHCONTF_SHAREABLE           = &amp;H0400 &#039; hint that client is looking sharable resources (remote shares)
Const SHCONTF_STORAGE             = &amp;H0800 &#039; include all items with accessible storage and their ancestors</code></pre></div><p>Другие константы доступны в Vista и/или выше: <a href="http://msdn.microsoft.com/en-us/library/bb762539(VS.85).aspx">SHCONTF Enumeration (Windows)</a></p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Mon, 11 Oct 2010 13:35:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40305#p40305</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40279#p40279</link>
			<description><![CDATA[<p>Отлично...огромный респект. Правда я не до конца понял работу с регулярными выражениями, но будет над чем поработать.И у меня такой ещё вопрос. В скрипте вы работаете с объектом FolderItems. Используя метод Filter вы задаёте флаг 192. Что он обозначает? Не могу найти список флагов на MSDN. Если кинете ссылочку буду признателен.</p>]]></description>
			<author><![CDATA[null@example.com (NAUN)]]></author>
			<pubDate>Mon, 11 Oct 2010 08:41:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40279#p40279</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40182#p40182</link>
			<description><![CDATA[<p>Кстати - СИЛЬНО !!!</p>]]></description>
			<author><![CDATA[null@example.com (Евген)]]></author>
			<pubDate>Fri, 08 Oct 2010 16:14:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40182#p40182</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40166#p40166</link>
			<description><![CDATA[<div class="codebox"><pre><code>set shell=createobject(&quot;shell.Application&quot;)
set f=shell.NameSpace(&quot;c:\&quot;)
set i=f.items
i.Filter 192,&quot;*.txt&quot;
for each c in i
    with new RegExp
        .pattern=&quot;.*\\my_file([0-9]{2})\.txt$&quot;
        if .test(c.path) then
            msgbox c.path
            exit for
        end if
    end with
next</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (smaharbA)]]></author>
			<pubDate>Fri, 08 Oct 2010 14:25:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40166#p40166</guid>
		</item>
		<item>
			<title><![CDATA[VBS: проверить существование файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40153#p40153</link>
			<description><![CDATA[<p>Коллеги не могу решить в сущности простую проблему. Необходимо на VBS проверить существование файла. Использование <br />Set File = FSO.GetFile(&quot;c:/my_file.txt&quot;)<br />If FSO.FileExists(File) Then... <br />не работает с&nbsp; подстановочными символами.<br />Но в моём случае имя файла генерится другой программой добавляя к названию порядковый номер... типа my_file01.txt , my_file02.txt и.т.д.<br />Заранее благодарю за дельный совет..</p>]]></description>
			<author><![CDATA[null@example.com (NAUN)]]></author>
			<pubDate>Fri, 08 Oct 2010 13:14:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40153#p40153</guid>
		</item>
	</channel>
</rss>
