<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: проверить существование файла]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5016&amp;type=atom" />
	<updated>2010-10-11T13:35:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5016</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40305#p40305" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-10-11T13:35:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40305#p40305</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40279#p40279" />
			<content type="html"><![CDATA[<p>Отлично...огромный респект. Правда я не до конца понял работу с регулярными выражениями, но будет над чем поработать.И у меня такой ещё вопрос. В скрипте вы работаете с объектом FolderItems. Используя метод Filter вы задаёте флаг 192. Что он обозначает? Не могу найти список флагов на MSDN. Если кинете ссылочку буду признателен.</p>]]></content>
			<author>
				<name><![CDATA[NAUN]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26223</uri>
			</author>
			<updated>2010-10-11T08:41:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40279#p40279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40182#p40182" />
			<content type="html"><![CDATA[<p>Кстати - СИЛЬНО !!!</p>]]></content>
			<author>
				<name><![CDATA[Евген]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25253</uri>
			</author>
			<updated>2010-10-08T16:14:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40182#p40182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: проверить существование файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40166#p40166" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2911</uri>
			</author>
			<updated>2010-10-08T14:25:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40166#p40166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: проверить существование файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40153#p40153" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[NAUN]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26223</uri>
			</author>
			<updated>2010-10-08T13:14:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40153#p40153</id>
		</entry>
</feed>
