<?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=8077&amp;type=atom" />
	<updated>2014-07-01T05:24:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8077</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84375#p84375" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Точнее так</p><p>&quot;&quot;e:\&quot;&quot; на e: - без слэша</p></blockquote></div><p>Это означает — «текущий каталог на диске «e:»».</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-07-01T05:24:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84375#p84375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84374#p84374" />
			<content type="html"><![CDATA[<p>Точнее так <br />&quot;&quot;e:\&quot;&quot; на e: - без слэша</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2014-07-01T04:57:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84374#p84374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84365#p84365" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>но у меня заработало&nbsp; &quot;&quot;e:\&quot;&quot; e:\ - без кавычек, с твоими поправками.</p></blockquote></div><p>Если будут пробельные символы в этом пути — кавычки понадобятся.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-06-30T12:27:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84365#p84365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84362#p84362" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><div class="codebox"><pre><code>WshShell.Run &quot;&quot;&quot;c:\Program Files (x86)\Nero\Nero 2014\Nero Burning ROM\NeroCmd.exe&quot;&quot; --write --drivename &quot;&quot;e:\&quot;&quot; --underrun_prot --media_type media_cd --speed 24 --iso Test --close_session --disable_eject --recursive &quot;&quot;c:\backup\&quot; &amp; FileName &amp; &quot;&quot;&quot;&quot;, 1, True</code></pre></div></blockquote></div><p>Спасибо комрад!</p><p>но у меня заработало&nbsp; &quot;&quot;e:\&quot;&quot; e:\ - без кавычек, с твоими поправками.</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2014-06-30T08:19:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84362#p84362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84257#p84257" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>WshShell.Run &quot;&quot;&quot;c:\Program Files (x86)\Nero\Nero 2014\Nero Burning ROM\NeroCmd.exe&quot;&quot; --write --drivename &quot;&quot;e:\&quot;&quot; --underrun_prot --media_type media_cd --speed 24 --iso Test --close_session --disable_eject --recursive &quot;&quot;c:\backup\&quot; &amp; FileName &amp; &quot;&quot;&quot;&quot;, 1, True</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-06-26T19:58:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84257#p84257</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84246#p84246" />
			<content type="html"><![CDATA[<p>Снова какая-то ерунда.<br />Что не так? Где ошибся?<br /></p><div class="codebox"><pre><code>
FileName = file.Name

Вариант 1
WshShell.Run(&quot;c:\Program Files (x86)\Nero\Nero 2014\Nero Burning ROM\NeroCmd.exe&quot; --write --drivename &quot;e:\&quot; --underrun_prot --media_type media_cd --speed 24 --iso Test --close_session --disable_eject --recursive c:\backup\&quot;&amp;FileName&quot;&quot;,1,True)

Вариант2
WshShell.Run &quot;&quot;&quot;c:\Program Files (x86)\Nero\Nero 2014\Nero Burning ROM\NeroCmd.exe&quot; --write --drivename &quot;e:\&quot; --underrun_prot --media_type media_cd --speed 24 --iso Test --close_session --disable_eject --recursive c:\backup\&quot;&amp;FileName&quot;&quot;&quot;&quot;
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2014-06-26T14:33:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84246#p84246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69941#p69941" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>Используйте «&amp;», а не «+».</p></blockquote></div><p>хех, пасиб вам работает!</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-03-05T06:53:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69941#p69941</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69912#p69912" />
			<content type="html"><![CDATA[<p>Используйте «&amp;», а не «+».</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-03-02T22:00:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69912#p69912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69910#p69910" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p><strong>Dr.Hofmann</strong>, в чём проблема?</p></blockquote></div><p>Проблема в следующем:<br />Если пишу строку кода <br /></p><div class="codebox"><pre><code>Set objWshScriptExec = objShell.Exec(&quot;7zip.exe e test.zip&quot;)</code></pre></div><p> - то все работает.</p><p>Мне нужно вместо test.zip&nbsp; подставить/передать значение переменной File. <br />пробовал делать так:<br /></p><div class="codebox"><pre><code>Set objWshScriptExec = objShell.Exec(&quot;7zip.exe e &quot;+File)</code></pre></div><p>и так <br /></p><div class="codebox"><pre><code>WshShell.run &quot;7z.exe e c:\cat1\&quot;+File+&quot; c:\tmp&quot;</code></pre></div><p>- неполучилось.<br />Что делаю не так?</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-03-02T18:10:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69910#p69910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69831#p69831" />
			<content type="html"><![CDATA[<p><strong>Dr.Hofmann</strong>, в чём проблема?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-02-28T15:42:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69831#p69831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69825#p69825" />
			<content type="html"><![CDATA[<p>up</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-02-28T11:05:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69825#p69825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69802#p69802" />
			<content type="html"><![CDATA[<p>ок. Посмотрим.<br />+<br />Поправка: если рассматривать vbs и 7zip<br />например:<br /></p><div class="codebox"><pre><code>
set FSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
For each file in FSO.GetFolder(&quot;.\cat2&quot;).Files
Set File = FSO.GetFile(file)
Set objShell = CreateObject(&quot;WScript.Shell&quot;)
Set objWshScriptExec = objShell.Exec(&quot;7zip.exe e ??????&quot;)
Set objStdOut = objWshScriptExec.StdOut
</code></pre></div><p>Так будет работать:<br />Set objWshScriptExec = objShell.Exec(&quot;7zip.exe e file&quot;)</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-02-27T13:58:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69802#p69802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69800#p69800" />
			<content type="html"><![CDATA[<p>Можно и так. Можно и через «.Exec()».</p><p>В любом случае используйте параметр trid.exe, ограничивающий вывод утилиты только наиболее вероятным вариантом (наименование параметра навскидку не помню, смотрите сами).</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-02-27T13:28:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69800#p69800</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69798#p69798" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code> разбирая в скрипте вывод этого приложения.</code></pre></div><p>Так делается или как-то по другому кодится:<br /></p><div class="codebox"><pre><code>
WScript.CreateObject(&quot;Wscript.Shell&quot;).Run _
&quot;%comspec% /K chcp 1251 &amp;&amp;trid c:\test\doc\test.arj &gt; outfile.txt&quot;

outfile = &quot;outfile.txt&quot;

Set FSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)

Set File = FSO.GetFile(outfile)

Set TextStream = File.OpenAsTextStream(1)

Str = TextStream.ReadAll()

TextStream.Close

Set objRegExp = CreateObject(&quot;VBScript.RegExp&quot;)

objRegExp.Pattern = &quot;ARJ compressed archive&quot;

GetBool = objRegExp.Test(Str) 

if GetBool = true then 

else

end If 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-02-27T12:59:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69798#p69798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Поиск файлов в каталоге]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69716#p69716" />
			<content type="html"><![CDATA[<p>Используйте <a href="http://mark0.net/soft-trid-e.html">Marco Pontello&#039;s Home - Software - TrID</a>, разбирая в скрипте вывод этого приложения.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-02-22T11:10:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69716#p69716</id>
		</entry>
</feed>
