<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15880&amp;type=atom" />
	<updated>2020-12-03T14:03:18Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15880</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Ошибка:Не удается найти указанный файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=143865#p143865" />
			<content type="html"><![CDATA[<p>Видимо<br /></p><div class="codebox"><pre><code>&quot;&quot;&quot;&quot; &amp; youtube_dl &amp; ssylka</code></pre></div><p>должно быть<br /></p><div class="codebox"><pre><code>&quot;&quot;&quot;&quot; &amp; youtube_dl &amp; &quot;&quot;&quot; &quot;&quot;&quot; &amp; ssylka</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2020-12-03T14:03:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=143865#p143865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Ошибка:Не удается найти указанный файл.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=143863#p143863" />
			<content type="html"><![CDATA[<p>Решил на основе проги youtube-dl сделать себе скриптик по получению параметров видеоролика в youtube. </p><div class="codebox"><pre><code>list_txt=&quot;c:\00\0\list.txt&quot; &#039;список с ссылками
output_txt=&quot;c:\00\0\output.txt&quot; &#039;сюда пишем результаты 
youtube_dl=&quot;c:\00\0\youtube-dl.exe&quot; 

Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set WSHShell = WScript.CreateObject(&quot;WScript.Shell&quot;)

Schityvanie

&#039;Создаём процедуру
Sub Schityvanie
   Set infile = fso.OpenTextFile(list_txt, 1)
  Set outfile = fso.OpenTextFile(output_txt, 2, True)
Do While Not infile.AtEndOfStream

&#039;считываем строку из list.txt в переменную ssylka
 ssylka = infile.ReadLine 

&#039;выполняем
RetCode = WSHShell.Run (&quot;&quot;&quot;&quot; &amp; youtube_dl &amp; ssylka &amp;&quot;&quot;&quot; --simulate --get-title --get-id --get-duration --get-format --get-description&quot;,2,True)


&#039;пишем в output_txt
outfile.WriteLine(RetCode)
Loop

infile.Close
outfile.Close

End Sub

Set WSHShell = Nothing</code></pre></div><p>на строку 23 </p><div class="codebox"><pre><code>RetCode = WSHShell.Run (&quot;&quot;&quot;&quot; &amp; youtube_dl &amp; ssylka &amp;&quot;&quot;&quot; --simulate --get-title --get-id --get-duration --get-format --get-description&quot;,2,True)</code></pre></div><p>система упорно матерится что нет файла c:\00\0\youtube-dl.exe<br /></p><div class="quotebox"><blockquote><p>Сценарий:	c:\00\0\скачиваем только название доделать.vbs<br />Строка:	23<br />Символ:	1<br />Ошибка:	Не удается найти указанный файл. <br />Код:	80070002<br />Источник: 	(null)</p></blockquote></div><p>хотя файл есть, ссылка на него верная. В чем проблема не понятно?<br />На всякий случай добавлю ссылку на архив с прогой и list.txt <a href="https://yadi.sk/d/SFHIroYsYe5j-Q">https://yadi.sk/d/SFHIroYsYe5j-Q</a></p>]]></content>
			<author>
				<name><![CDATA[griha09]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27540</uri>
			</author>
			<updated>2020-12-03T12:33:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=143863#p143863</id>
		</entry>
</feed>
