<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: Запуск mshta.exe от имени]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=6006</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6006&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: Запуск mshta.exe от имени».]]></description>
		<lastBuildDate>Fri, 15 Jul 2011 08:04:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: Запуск mshta.exe от имени]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=49871#p49871</link>
			<description><![CDATA[<p>в том то и дело, что&nbsp; пристарте XXX.hta пытается подключиться к локальному WMI, а локальное подключение возможно только от имени текущего пользователя... и не смотря на то, что я выбираю текущего, все равно косяк...<br />в общем не получится ничего<br />короче щас запостю темку с ссылкой на это чудо-приложение <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />приглашаю тестировать</p>]]></description>
			<author><![CDATA[null@example.com (dab00)]]></author>
			<pubDate>Fri, 15 Jul 2011 08:04:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=49871#p49871</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Запуск mshta.exe от имени]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=49870#p49870</link>
			<description><![CDATA[<p>-2147024891 вроде-бы означает &quot;отказано в доступе&quot;.<br />Вы от чьего имени HTA запускаете и к WMI на каком компьютере (на локальном или по сети) подключаетесь?</p>]]></description>
			<author><![CDATA[null@example.com (Spy00000)]]></author>
			<pubDate>Fri, 15 Jul 2011 06:48:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=49870#p49870</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Запуск mshta.exe от имени]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=49861#p49861</link>
			<description><![CDATA[<p>спасибо Spy00000, пробел был лишний, сэкономил пару часов<br />только вот теперь другой косяк: при запуске от имени XXX.hta не удается подключиться к WMI<br />код ошибки: -2147024891<br />похоже с подключением от имени ничего не получится...</p>]]></description>
			<author><![CDATA[null@example.com (dab00)]]></author>
			<pubDate>Thu, 14 Jul 2011 17:38:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=49861#p49861</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Запуск mshta.exe от имени]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=49860#p49860</link>
			<description><![CDATA[<p>Для <strong>objShellApp.ShellExecute</strong> аргументы для файла вторым параметром передаются.<br />Вот так вот должно работать:<br /></p><div class="codebox"><pre><code>
Set objShellApp = CreateObject(&quot;Shell.Application&quot;)
Set wshShell = CreateObject(&quot;WScript.Shell&quot;)
objShellApp.ShellExecute &quot;mshta.exe&quot; , Chr(34) &amp; wshShell.CurrentDirectory &amp; &quot;\&quot; &amp; &quot;XXX.hta&quot; &amp; Chr(34), &quot;&quot;, &quot;runas&quot;,1</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Spy00000)]]></author>
			<pubDate>Thu, 14 Jul 2011 17:11:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=49860#p49860</guid>
		</item>
		<item>
			<title><![CDATA[VBS: Запуск mshta.exe от имени]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=49856#p49856</link>
			<description><![CDATA[<p>Не получается запустить mshta.exe от имени<br />Код:<br /></p><div class="codebox"><pre><code>Set objShellApp = CreateObject(&quot;Shell.Application&quot;)
Set wshShell = CreateObject(&quot;WScript.Shell&quot;)
objShellApp.ShellExecute &quot;mshta.exe &quot; &amp; Chr(34) &amp; wshShell.CurrentDirectory &amp; &quot;\&quot; &amp; &quot;XXX.hta&quot; &amp; Chr(34), &quot;&quot;, &quot;&quot;, &quot;runas&quot;,1</code></pre></div><p>Пишет Windows не удалось найти &#039;mshta.exe &quot;C:\Temp\XXX.hta&quot;&#039;<br />Подскажите, пожалуйста, как решить вопрос.<br />Через wshShell.Run - без проблем. А очень хочется через objShellApp.ShellExecute.</p><p>А если просто: </p><div class="codebox"><pre><code>objShellApp.ShellExecute Chr(34) &amp; wshShell.CurrentDirectory &amp; &quot;\&quot; &amp; &quot;XXX.hta&quot; &amp; Chr(34), &quot;&quot;, &quot;&quot;, &quot;runas&quot;,1</code></pre></div><p>то пишет Приложение, выполняющее эту операцию указанному файлу не сопоставлено.</p><p>В path system32 есть<br />assoc .hta: .hta = htafile<br />...</p>]]></description>
			<author><![CDATA[null@example.com (dab00)]]></author>
			<pubDate>Thu, 14 Jul 2011 14:32:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=49856#p49856</guid>
		</item>
	</channel>
</rss>
