<?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=15880</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15880&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: Ошибка:Не удается найти указанный файл.».]]></description>
		<lastBuildDate>Thu, 03 Dec 2020 14:03:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: Ошибка:Не удается найти указанный файл.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=143865#p143865</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Rumata)]]></author>
			<pubDate>Thu, 03 Dec 2020 14:03:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=143865#p143865</guid>
		</item>
		<item>
			<title><![CDATA[VBS: Ошибка:Не удается найти указанный файл.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=143863#p143863</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (griha09)]]></author>
			<pubDate>Thu, 03 Dec 2020 12:33:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=143863#p143863</guid>
		</item>
	</channel>
</rss>
