<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; JS: Как запустить txt или word файл из скрипта]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11556</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11556&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «JS: Как запустить txt или word файл из скрипта».]]></description>
		<lastBuildDate>Wed, 04 May 2016 14:47:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: JS: Как запустить txt или word файл из скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=103354#p103354</link>
			<description><![CDATA[<p>Для пробельных случаев экранация WSH.Run(&#039;&quot;&#039;+File+&#039;&quot;&#039;) тоже не помешает. Поправил в 7 варианте.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Wed, 04 May 2016 14:47:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=103354#p103354</guid>
		</item>
		<item>
			<title><![CDATA[Re: JS: Как запустить txt или word файл из скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=103352#p103352</link>
			<description><![CDATA[<div class="quotebox"><cite>trom пишет:</cite><blockquote><p>у меня просто открылся диск С, а само тхт не открылось</p></blockquote></div><p>Извиняюсь, просмотрел, что косая черта не экранирована:<br /></p><div class="codebox"><pre><code>var put=&quot;C:\test.txt&quot;</code></pre></div><p>В итоге &quot;\t&quot; было воспринято как символ табуляции, т.е. разделитель между параметрами &quot;C:&quot; и &quot;est.txt&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (Мальчик-гей)]]></author>
			<pubDate>Wed, 04 May 2016 14:29:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=103352#p103352</guid>
		</item>
		<item>
			<title><![CDATA[Re: JS: Как запустить txt или word файл из скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=103348#p103348</link>
			<description><![CDATA[<div class="codebox"><pre><code>var File = &quot;C:\\test.txt&quot;
var Shell = WScript.CreateObject(&quot;Shell.Application&quot;)
// 1)
Shell.Open(File)
// 2)
Shell.ShellExecute(File)
// 3)
Shell.ControlPanelItem(File)
// 4)
Shell.NameSpace(0).ParseName(File).InvokeVerb(&quot;open&quot;)
// 5)
Shell.NameSpace(0).ParseName(File).InvokeVerb(&quot;edit&quot;)
// 6)
Shell.NameSpace(0).ParseName(File).Verbs().Item(0).DoIt()
// 7)
WScript.CreateObject(&quot;WScript.Shell&quot;). Run(&#039;&quot;&#039;+File+&#039;&quot;&#039;)
// 8)
WScript.CreateObject(&quot;WScript.Shell&quot;).Exec(&quot;notepad &quot; + File)
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Wed, 04 May 2016 12:12:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=103348#p103348</guid>
		</item>
		<item>
			<title><![CDATA[Re: JS: Как запустить txt или word файл из скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=103346#p103346</link>
			<description><![CDATA[<p>у меня просто открылся диск С, а само тхт не открылось</p>]]></description>
			<author><![CDATA[null@example.com (trom)]]></author>
			<pubDate>Wed, 04 May 2016 11:24:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=103346#p103346</guid>
		</item>
		<item>
			<title><![CDATA[Re: JS: Как запустить txt или word файл из скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=103345#p103345</link>
			<description><![CDATA[<div class="codebox"><pre><code>shell.Run(put);</code></pre></div><p>, например.</p>]]></description>
			<author><![CDATA[null@example.com (Мальчик-гей)]]></author>
			<pubDate>Wed, 04 May 2016 11:07:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=103345#p103345</guid>
		</item>
		<item>
			<title><![CDATA[JS: Как запустить txt или word файл из скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=103339#p103339</link>
			<description><![CDATA[<p>Пробую так вылетает ошибка, exe файлы запускаются без проблем, а как запустить текстовый файл?<br /></p><div class="codebox"><pre><code>var put=&quot;C:\test.txt&quot;
var shell = new ActiveXObject(&quot;WScript.Shell&quot;);
shell.exec(put);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (trom)]]></author>
			<pubDate>Wed, 04 May 2016 10:24:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=103339#p103339</guid>
		</item>
	</channel>
</rss>
